'The connection was lost; notify any nested protocol.'

def connectionLost(self, reason):

    if (self.innerProtocol is not None):
        self.innerProtocol.connectionLost(reason)
        if (self.innerProtocolClientFactory is not None):
            self.innerProtocolClientFactory.clientConnectionLost(None, reason)
    if self._keyLengthLimitExceeded:
        failReason = Failure(TooLong(True, False, None, None))
    elif (reason.check(ConnectionClosed) and self._justStartedTLS):
        failReason = PeerVerifyError('Peer    rejected    our    certificate    for    an    unknown    reason.')
    else:
        failReason = reason
    self.boxReceiver.stopReceivingBoxes(failReason)
