closeAfterGuiDiscarded

Destroys device-owned resources after the caller has discarded every unconsumed native GUI queue.

Shutdown immediately stops acquisition and first asks the driver to submit as required and complete every recorded GPU command. If completion cannot be established, no resource release is attempted; targets, fences, leases, renderers, and portable GUI resources remain quarantined because their last GPU use is unproven. After completion is established, all independent releases are attempted and deferred destruction is drained once before physical target and portable resource acknowledgements release their separate permits. A failed release or missing physical acknowledgement retains its permit and quarantined resource instead of claiming successful release. Every failure remains sticky on repeated shutdown calls; independent cleanup continues after individual release or drain failures once completion has been established.

Throws

when terminal completion fails before release, or when later cleanup fails after the remaining independent cleanup has been attempted.