diff --git a/src/index.ts b/src/index.ts index b053450..fc43502 100644 --- a/src/index.ts +++ b/src/index.ts @@ -337,3 +337,9 @@ function getStandingsHeaders(table: HTMLTableElement) { return headings } + +process.on('SIGINT', async () => { + console.log('\nShutting down...') + await app.stop() + process.exit(0) +})