'Fail the waiting Deferred, initialized by C{waitForDescriptor}, if there
is one.'

def connectionLost(self, reason):

    ConnectableProtocol.connectionLost(self, reason)
    if (self.waiting is not None):
        self.waiting.errback(reason)
        self.waiting = None
    self.reason = reason
