fixes the quit message sent to the client after a connection is terminated