private function unregisterEvents() { foreach ($this->handlers as $handler) { $handler->cancel(); } }