protected function setupCrawlerStatusHandler()
  {
    // Cases the crawlerstatus has to be written to file
    if ($this->multiprocess_mode == PHPCrawlerMultiProcessModes::MPMODE_CHILDS_EXECUTES_USERCODE || $this->resumtion_enabled == true)
    {
      $this->CrawlerStatusHandler->write_status_to_file = true;
    }
    
    if ($this->request_delay_time != null && $this->multiprocess_mode != PHPCrawlerMultiProcessModes::MPMODE_NONE)
    {
      $this->CrawlerStatusHandler->write_status_to_file = true;
    }
    
    // Cases a crawlerstatus-update has to be locked
    if ($this->multiprocess_mode == PHPCrawlerMultiProcessModes::MPMODE_CHILDS_EXECUTES_USERCODE)
    {
      $this->CrawlerStatusHandler->lock_status_updates = true;
    }
    
    if ($this->request_delay_time != null && $this->multiprocess_mode != PHPCrawlerMultiProcessModes::MPMODE_NONE)
    {
      $this->CrawlerStatusHandler->lock_status_updates = true;
    }
  }