# Functions
SetExitCode sets the exit code to 1 if the error is not a context.Canceled error.
SetExitCode sets the exit code to 1 if the error is not a context.Canceled error.
SetupExitHandler: A context is returned which is canceled on receiving a shutdown signal (SIGTERM or SIGINT).
# Constants
AlwaysErrCode indicates the exit code of the program should always be nonzero and should correspond to the numeric value of the signal that was received.
GracefulShutdown treats a shutdown signal as a request to exit gracefully, terminating goroutines and returning an exit code of 0 if there are no errors during shutdown.
# Type aliases
ExitBehavior controls how the program should be terminated in response to a shutdown signal.