Commit before leaving.