Concept Flow - Graceful shutdown sequence
Receive shutdown signal
Notify tasks to stop
Complete current operations
Release resources
Delete tasks
Stop scheduler
System powered down
The system receives a shutdown signal, tells tasks to stop, waits for them to finish, cleans up, then stops the scheduler and powers down.