def stop(self): """Call to cleanup the reactor""" ThreadCommand((self._doStop, (), {}), self._onStopped, self._onStopFailed)