commit before leave the office