BotNetwork

Graceful shutdown order for bot processes

Recommended sequence on SIGTERM.

StepDetail
1Stop accepting new HTTP / polling
2Finish or park in-flight jobs with a deadline
3Flush logs / metrics
4Close DB and Redis clients
5Exit 0

Verify against official documentation before production use.