There is no rollback mechanism built into the installer (unless there is an issue in the middle of the installation in which case it will back out the installation).  If you are using a VM the best practice is to snapshot your VM prior to upgrade and roll back to the snapshot if something goes wrong.  This should be done with care because any data changed post upgrade will be lost when you restore the snapshot.