code: public function doStop()
      {
          if ($this->controller->doStop()) {
              $this->job->setStatus(Status::CANCELLED());
  
              return true;
          }
  
          return false;
      }
docs: Sets status of the job to cancelled if process controller indicates to exit.
  
  @return boolean