public function __destruct() { if (!self::$handlers) { return; } foreach ($this->ids as $id) { unset(self::$handlers[$id]); } }