code: private function stopCustomProcess(): void
      {
          if ($this->isCustomProcessSet()) {
              $this->getCustomProcess()->stop();
          } elseif (class_exists('\extensions\core\Process')) {
              \extensions\core\Process::getInstance()->stop();
          }
      }
docs: The method kills custom process.
  @return void