Adjusted REPL flow, more robust error handling.

Stream is initially paused, resumed just after prompting for input.
.done() handler ensures REPL loops after catch