public function stop() { if ($this->_started) { $this->onStop(); foreach ($this->plugins() as $plugin) { $plugin->stop(); } } }