ForceExitOnShutdown
by Lumine1909
ForceExitOnShutdown makes a Minecraft Java Edition 26.2 client or server exit at shutdown when a watchdog would otherwise hang on a non-daemon thread.
What it does
The crash it targets happens when the watchdog kills a non-daemon thread that keeps the process alive. The fix adds a System.exit(0) call so the game closes cleanly instead of stalling. It is a Fabric mod for Minecraft 26.2 only, with a single file, 0.1.0, published on 2026-06-28. Either side can run it, and neither needs it. The project is open source under the GNU General Public License v3.0 only, and its source code and issue tracker are public.
Key features
Forced exit on shutdown
When the game shuts down, the mod calls System.exit(0) so the process ends rather than waiting on a stuck thread.
Watchdog crash fix
It addresses crashes where the watchdog terminates a non-daemon thread and the game fails to close.
Older-version workaround
The same forced exit was used to patch this problem in earlier versions, now carried into 26.2.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Questions
Does ForceExitOnShutdown need Fabric API?
Is ForceExitOnShutdown required on both sides?
In the catalog
ForceExitOnShutdown is one of 7,555 Cursed mods on ModsFinder, and one of 4,235 Cursed mods for Fabric. 13,894 mods support Minecraft 26.2.
More from Lumine1909
Similar mods
What the author says
Fix minecraft crash on shutdown due to watchdog killing non-daemon thread by adding System.exit(0) Minecraft do not execute System.exit(0); on exit anymore, so all the mods that do not clean up non-daemon executors by themselves will prevent the minecraft from fully close. Then the watchdog will kill minecraft and…
Official listing
- Modrinth page
- modrinth.com/mod/forceexitonshutdown
- Owner
- Lumine1909
- Published
- 2026-06-28
- Updated on Modrinth
- 2026-06-28
- Facts verified
- 2026-10-15