Fix socket.get call on socket disconnection.