Report that channel is not connected if the socket is closed.
This avoids a deadlock scenario where the client does not close a
connection. The server blocks indefinitely waiting for a command, and
other clients cannot access the server because the number of concurrent
connections limit becomes exhausted.