Why does your client "need" to close the socket?