'Called internally to shut the connection down.'

def _close(self):

    if (self._is_connected is False):
        return
    self._transport._forget(self)
    self._is_connected = False
    for (name, chan) in self._transport._nexus._channels.items():
        chan._remove_member(self)
    self.raiseEventNoErrors(ConnectionClosed, self)
