Exit code 0 is the odd one: by convention it means a program ended normally, with no error. When the Minecraft launcher reports exit code 0 after the game vanishes mid-launch or mid-session, it means the Java process ended without crashing in the usual way, something told it to stop, or it decided to stop. On modded installs, a mod forcing a shutdown is the classic cause; on any install, an external kill or a launcher misconfiguration can do it too.
latest.log in the logs folder, or the launcher's output log). A clean-looking end with mod messages points at a mod halting the game; an abrupt cut-off points at the process being killed.Crash codes get the attention, so a game that disappears with a 'success' code feels like a lie. In practice the JVM reports how it ended, and a deliberate System.exit call from a mod, a watchdog killing the process, or the launcher ending the session all produce 0 or near-clean exits. The log is the witness: code 0 plus a tidy log is an intentional exit; code 0 plus a log sliced mid-line is a kill.
Is exit code 0 bad for my worlds or saves? A mid-session exit can leave the world exactly as of the last autosave, and an unclean kill while saving carries a small corruption risk, which is why backups matter. The code itself does not damage anything.
Vanilla also exits with code 0. Now what? Move to the external suspects: update graphics drivers, test with overlays and antivirus real-time scanning paused, and try the launcher's fresh profile. If it persists, the full log from a failed launch is the thing support or a forum will need.