Commit before cleanup.