Debugging a hanging shutdown on a modded server

I'm running a modded server with 200-ish mods and one of them is causing /stop to fail to exit to terminal as I presume some random mod's thread is hanging, using ctrl+c to exit doesn't cause any issues after the shutdown process is complete so it's not a corruption concern, but it does break any shell script logic for auto-restarting the server since the process is still active after running /stop. I was wondering if there's any way to determine what components of the server are still running to cause this, or maybe a kubejs event that can force quit the server ~2 minutes after running /stop?
Was this page helpful?