fixed an issue where disconnects on UDP and TCP clients werent reported properly