4 ms·You need to register an event handler with `Runtime.getRuntime().addShutdownHook()`.by xmodem 5y agoYou need to register an event handler with `Runtime.getRuntime().addShutdownHook()`.