pub const PROCESS_SHUTDOWN_CAPABILITY: &str = "process_shutdown";
The process exits cleanly on a winx.shutdown request; Windows has no SIGTERM, so this is the only graceful stop there.
winx.shutdown