Commit before deleting tab bar controller.