Makes the view controller's transition safe.