Additional check for an error condition on the socket.