private TCPConnection isClosed getter and setter are now syncrhonized