Commit before leaving