Registers process signal handlers for SIGTERM and SIGINT.
Returns whether a shutdown has been initiated.
True once a shutdown signal has been received.
Registers a callback to run during graceful shutdown.
Function to invoke when the process is shutting down.
Procedure indicating the callback was registered.
Listens for SIGTERM/SIGINT and runs registered cleanup callbacks before exit.