Quit on errors/eof
Optimize server
Pipe to socket