public function onFinish() { if ($this->timer) { Timer::clearTimeout($this->timer); $this->timer = null; } }