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

submitted by request. 

See https://github.com/orientechnologies/orientdb/commit/65b60ad8f35f91e6ad8b6f0f59f841e86a435efc for discussion.