close #78 prevent exit without saving done