Creates and registers a shutdown actions middleware, which registers shutdown action and executes them on app shutdown.
express app
Optional
logger to output shutdown actions
Generated using TypeDoc
Creates and registers a shutdown actions middleware, which registers shutdown action and executes them on app shutdown.