private function stopCustomProcess(): void
    {
        if ($this->isCustomProcessSet()) {
            $this->getCustomProcess()->stop();
        } elseif (class_exists('\extensions\core\Process')) {
            \extensions\core\Process::getInstance()->stop();
        }
    }