display a message before quitting