Concept Flow - Graceful shutdown handling
Start Server
Server Running
Receive Shutdown Signal
Stop Accepting New Requests
Finish Ongoing Requests
Close Server
Exit Process
The server starts and runs normally. When a shutdown signal arrives, it stops new requests, finishes current ones, closes, and exits.