Improved server shutdown flow
-Server closes I/O streams before shutting down sockets
-"END" signal sent from server will cause clients to shut down their I/O
streams and sockets automatically.