commit before leav