Report that channel is not connected if the socket is closed.
Merge pull request #2662 from rtc-draper/fixsock

Report that channel is not connected if the socket is closed.