Modrinth · Minecraft mod
ForceExitOnShutdown
Fix minecraft crash on shutdown due to watchdog killing non-daemon thread by adding System.exit(0)
Quick answer
Which ForceExitOnShutdown release matches 26.3?
ForceExitOnShutdown 0.2.0 targets 26.3, 26.2 with Fabric, NeoForge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is ForceExitOnShutdown required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does ForceExitOnShutdown 0.2.0 need?
0.2.0 on 26.3. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add ForceExitOnShutdown without breaking your instance.
Built for ForceExitOnShutdown 0.2.0 on 26.3. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 0.2.0. It targets 26.3, 26.2 with Fabric, NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 0.2.0. It opens that exact file at the source.
About this project
What does ForceExitOnShutdown add?
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!
Project description from Modrinth.
Pick your setup
ForceExitOnShutdown by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.2
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
ForceExitOnShutdown versions and loaders
0.2.0
ForceExitOnShutdown-0.2.0.jar
28 Nov 2026
Looking for an older file? The official Modrinth project page is in Resources.