@You need to send a close packet when disconnecting from a TCP server. In my IRC version I would send a close message upon end play. Also, if I remember correctly, the server will eventually disconnect the ghost client depending on what kind of TCP service you are using.