Better error handling plugged into the repl.