onClose
Closes the host and always navigates to the transferred parent screen.
Cleanup and parent navigation are each attempted at most once. If both fail, the cleanup failure remains primary and the navigation failure is suppressed. A close requested synchronously from a common pointer callback is completed when that input transaction exits, before another common operation can begin.
Throws
when host cleanup or navigation fails.
when invoked away from the Minecraft client thread.