handle EOF in REPL
Merge pull request #1 from ComputerDruid/handle-eof

handle EOF in REPL