public function __destruct() { if ($this->runner instanceof RunnerInterface) { $this->runner->finish(); } }