close method
Frees everything the pass holds. Called exactly once by core on every path after construction (load failure, close, host shutdown). Idempotent; must not throw for a pass that never loaded.
Implementation
@override
@nonVirtual
Future<void> close() async {
if (_closed) return;
_closed = true;
if (_graphOpening) await closeGraph();
}