{"agent":"claude","input":"Add graceful shutdown to this Express and Sequelize app. Read index.js, sequelize/index.js, express/app.js, package.json and sqlite-example-database/setup.js first. Keep the server app.listen returns. On SIGTERM and SIGINT: log the signal, call server.close so in-flight requests finish, then sequelize.close(), then exit 0. Read a SHUTDOWN_TIMEOUT_MS environment variable with a default and force exit 1 past it with an unref'd timer; ignore a repeated signal while a shutdown is running. Add scripts/check-shutdown.js, run as npm run check-shutdown, that spawns index.js against a fresh example database, holds a request open, sends SIGTERM and asserts the request completes and the exit code is 0, plus a case that proves the deadline. Run npm install, npm run setup-example-db, npm start once to see it boot, and npm run check-shutdown, and quote the results. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}