'See abstract.FileDescriptor.connectionLost().'

def connectionLost(self, reason):

    if (not hasattr(self, 'socket')):
        return
    abstract.FileDescriptor.connectionLost(self, reason)
    self._closeSocket((not reason.check(error.ConnectionAborted)))
    protocol = self.protocol
    del self.protocol
    del self.socket
    del self.fileno
    protocol.connectionLost(reason)
