public function useDefaultStopSignalHandler(int $stopDelay = 10, array $signals = [\SIGINT, \SIGTERM]): self
    {
        $stopDelay = 0 >= $stopDelay ? 1 : $stopDelay;

        /**
         * @noinspection PhpUnhandledExceptionInspection
         *
         * @var LoggerInterface $logger
         */
        $logger = $this->getKernelContainerService('service_bus.logger');

        $handler = function(string $watcherId, int $signalId) use ($stopDelay, $logger): void
        {
            $logger->info(
                'A signal "{signalId}" was received',
                [
                    'signalId'  => $signalId,
                    'watcherId' => $watcherId,
                ]
            );

            $this->entryPoint->stop($stopDelay);
        };

        foreach ($signals as $signal)
        {
            /** @psalm-suppress MixedTypeCoercion Incorrect amphp types */
            Loop::onSignal($signal, $handler);
        }

        return $this;
    }