Deal with ^C and exceptions at repl.