def METHOD_NAME(self, reason):
    self._reader = None
    p = interfaces.IHalfCloseableProtocol(self.protocol, None)
    if p:
        try:
            p.readConnectionLost()
        except BaseException:
            log.err()
            self.connectionLost(failure.Failure())
    else:
        self.connectionLost(reason)