Standalone REPL: handle exceptions during print

Fix the standalone REPL to not crash when printing a value that throws
an exception during printing (particularly common with lazy sequences.)