In a graceful shutdown you want a 'force exit after N seconds' safety timer: if cleanup hangs, exit anyway. You write setTimeout(() => process.exit(1), 10000). What subtle problem does this timer introduce on a HEALTHY shutdown, and how do you fix it?
const killTimer = setTimeout(() => process.exit(1), 10_000);
await cleanup();
process.exit(0);