/** * Called when application instance is going to shutdown. * @return boolean Ready to shutdown? */ public function onShutdown($graceful = false) { if ($this->pool) { return $this->pool->onShutdown($graceful); } return true; }