close
Releases host and texture ownership exactly once. A close requested synchronously from a common frame or input callback is deferred until that operation exits on the same client thread. This method does not navigate; a displayed screen must be replaced by Minecraft or closed through onClose, while a later onClose may still perform its one parent-navigation attempt.
Throws
when host or texture cleanup fails; the first cleanup failure remains primary.
when invoked away from the Minecraft client thread.