repl: Use exception handling.