'Called when a connection fails. Stop listening on the socket.
@type reason: L{Failure}
@param reason: Why the connection failed.'

def connectionFailed(self, reason):

    self.stopListening()
    self.protocol.connectionFailed(reason)
    del self.protocol
