close
Requests release of the complete target set after its initialization, capture, and GUI work have completed.
Success means the release request was accepted, not necessarily that physical storage has been destroyed. The device calls isDestroyed after success and keeps the lifetime permit until it acknowledges physical destruction. A successful call is never repeated; a failed call may be retried once during terminal device cleanup. Implementations attempt all owned releases, retain ownership of resources whose release failed, and skip resources already released by an earlier attempt. Release requests are idempotent per resource; the first failure remains primary with later failures suppressed. This owner-thread operation does not wait for a deferred native destruction queue. It may enqueue native destruction but must not issue new GPU rendering, transfer, or initialization work.
Throws
when a release request fails.