before exit, ask user to save