fix for:

Server craches sporadicaly when TCP client sudenly turns off #1