Catch import errors in the right place

In REPL.loadInputs
Fixes #494
Fixes #755