applied wxceptiong handler to REPL