run
fun run(stopScreen: Runnable, discardGui: Runnable, releaseDevice: Runnable, closeVanilla: Runnable)(source)
Stops callbacks, discards unconsumed GUI work, conditionally releases the device and always attempts vanilla close. Runnable parameters preserve the existing Java entrypoint; all callbacks are borrowed only until return.