Whenever a server or client DC's, some functions would return -1, because they receive empty packets instead.
in response, the server tries to send a message to the client, and failing that, closes itself.
(no more bugged packet spam, only one message before a close test)