Improve stability of REPL server
Implement correct EOT character in client