public function interrupt($cb = null) { if ($cb !== null) { $this->callbacks->push($cb); } $this->base->exit(); }