commit before leaving.