public function handleSigTerm() { $this->sigTerm = true; foreach ($this->children as $process) { $process->kill(); } $this->internalEmit('shutdown'); }