Use BufferTestServer default port instead of command line argument
Have test client disconnect after sending messages
Update visibility of default port number
Graceful shutdown routine that preserves queued writes