fix(REPL): less editor freeze, better exception messages