code: def honor_stop_request(self, site):
          
          site.refresh()
          if (site.stop_requested
                  and site.stop_requested <= doublethink.utcnow()):
              self.logger.info("stop requested for site %s", site.id)
              raise brozzler.CrawlStopped
  
          if site.job_id:
              job = brozzler.Job.load(self.rr, site.job_id)
              if (job and job.stop_requested
                      and job.stop_requested <= doublethink.utcnow()):
                  self.logger.info("stop requested for job %s", site.job_id)
                  raise brozzler.CrawlStopped
docs: Raises brozzler.CrawlStopped if stop has been requested.