made TCP disconnection detection more reliable
(todo: hook-up to Bullet cmake/premake build systems, and implement TCP alternative for UDP server)