public function registerTerminationHandler(callable $handler) { $this->invoker->call('pcntl_signal', [self::SIGTERM, $handler]); }