Fucking remove the fucking client from the fucking socket set before closing the fucking socket holy shit