public function stop($kill = false) { foreach ($this->threads as $thread) { $thread->stop($kill); } }