cmd_history: show a more useful message if am quits