Cleaner error handling. Send buffer size to clients (needed for
tailclient -n -f). Treat input from client as a request to disconnect
after the buffer is sent, not continue following (needed for tailclient
without -f).