Ask confirmation before closing if user has unsent input