'Report an error.
@param data: Data to include in L{Failure}.
@type data: L{bytes}'

def errReceived(self, data):

    self.transport.loseConnection()
    if (self.proto is not None):
        self.proto.connectionLost(failure.Failure(UnexpectedOutputError(data)))
        self.proto = None
