Keep REPL running on runtime errors

I don't know if there's an open issue for this, but basically this patch makes the REPL keep running after runtime errors instead of terminating (which i've found quite annoying a couple of times).