public function cleanUp(Repository $repository) { if (!$this->isAlive()) { $repository->retireWorkerWithPid($this->pid); } }