'See twisted.internet.interfaces.IReactorCore.stop.'

def stop(self):

    if self._stopped:
        raise error.ReactorNotRunning("Can't    stop    reactor    that    isn't    running.")
    self._stopped = True
    self._justStopped = True
    self._startedBefore = True
