pass exception to REPL from the catch block too