Sub-issue of team-stack-underflow/runnable-backend#2
In a Unix pipeline, generally when a program terminates an EOF character is sent down the pipeline. currently our output script simply crashes when encountering EOF.
The EOF should be handled separately and a special message sent so that the API can return an appropriate response to the client.