/** * @param Job $job * @return \Spork\Fork */ protected function performJob(Job $job) { $this->host->disconnect(); return $this->spork->fork(function () use($job) { $performer = new JobPerformer($this->host, $job, $this->jobCreator, $this->logger); return $performer->perform(); }); }