exitCode = await killAndWait(signal, true); process.exit(exitCode ?? 0); }; } process.on('SIGTERM', signalHandler('SIGTERM')); process.on('SIGINT', signalHandler('SIGINT'));