public function onFinish() { $this->sendFrame('', 'CONNCLOSE'); if ($this->route) { $this->route->onFinish(); } $this->route = null; }