'Cleans up my socket.'

def connectionLost(self, reason=None):

    log.msg(('(UDP    Port    %s    Closed)' % self._realPortNumber))
    self._realPortNumber = None
    abstract.FileHandle.connectionLost(self, reason)
    self.protocol.doStop()
    self.socket.close()
    del self.socket
    del self.getFileHandle
    if hasattr(self, 'd'):
        self.d.callback(None)
        del self.d
