Process Safety
Fileprocesses.jsonFileconfig.jsonEvery process the tool starts stops with it. Server, clients and commands run in a Windows job object, a cleanup on the next start catches what still got away, and a ghost scanner finds leftovers from earlier runs.
How it is guarded
| Guard | What it does |
|---|---|
| Job object | Every process the tool starts runs in a Windows job object with kill-on-close, and the tool joins it too. If the tool dies, even from Task Manager, Windows ends the whole tree |
| Leftover cleanup | The tool records each process's PID and start time in processes.json, and cleans up on the next start. Both must match, so a recycled PID is never killed |
| Graceful stop | Closing the window or GET /shutdown sends stop to the server, waits up to 60 seconds (serverStopTimeoutSeconds), then kills the tree. Ctrl+C or a console close only gets 8 seconds before the kill |
Fileconfig.jsonThe job object can be turned on or off in config.json.

Ghost scanner
The scanner lists every java and node process with RAM, uptime and status.
- A process counts as a ghost only if this tool started it in an earlier session, or if it is a test server, client or bot script whose parent is gone.
- Gradle daemons show as busy or idle. Only ones idle for more than 10 minutes can be stopped, after a confirmation.
- IDEs, Maven, MCP servers and anything JetBrains started are never touched.
Server > Ghosts starts with one number and one key: Clean up stops every ghost, after a confirmation that lists them with their memory. Stop idle Gradle daemons stops only daemons idle for 10 minutes or more. Show all processes opens the full list with each command line, where Kill selected stops the picked rows.

After a crash
Fileprocesses.jsonFileconfig.jsonThe next start compares processes.json with what runs. When processes of the last session are still there, the window asks: Kill them or Leave running. survivorPolicy in config.json (Settings > Safety > Leftovers from a crash) answers for you: ask, kill or ignore. A --headless start stops them unless the policy is ignore.