ForceExitOnShutdown
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 generate a crash.
This mod is used to fix this problem, by adding force exit as older version (26.2-) did.
Important
This may cause problem, since I don't know why mojang eventually remove that exit code.
USE AT YOUR OWN RISK!
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 26.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as ForceExitOnShutdown-0.1.0+MC-26.2.jar — drop this file into the mods folder
- Download size: 16 KB
- Download link checked 25 Aug 2026 — working
These come from our own check of the pack file, not from the source page.