public function kill() { $this->running = false; foreach ($this->workers as $worker) { $worker->kill(); } }