Fixed _Channel._socket_close and tests.