Added a new check for disconnected sockets in socket.cpp.