close
Closes locally owned AutoCloseable resources once in reverse successful creation order. Closing is synchronous, idempotent, and safe under concurrent callers. One caller performs cleanup; other callers wait for it to finish and return without repeating cleanup or failures. Reentrant calls from a resource's close hook return without repeating cleanup.
All close hooks are attempted. The first cleanup failure is thrown to the caller performing cleanup, with later failures suppressed in attempt order, excluding the primary failure itself. Resources are not retried after failure. Parent resources and borrowed CanvasBuilder.instance bindings are unaffected. Finish scoped Mosaic work before closing its Canvas; retaining or using the Canvas afterward is unsupported.