'Stop the execution engine gracefully'

def stop(self):

    assert self.running, 'Engine    not    running'
    self.running = False
    dfd = self._close_all_spiders()
    return dfd.addBoth((lambda _: self._finish_stopping_engine()))
