'See: L{channel.SSHChannel}'

def closed(self):

    if self.client:
        log.msg(('closed    remote    forwarding    channel    %s' % self.id))
        if self.client.channel:
            self.loseConnection()
        self.client.transport.loseConnection()
        del self.client
