Middleware which stores various actions that should be executed when app is shut down.
Optional
Adds an action to be executed right before app is shut down.
sync or async function that returns void.
Middleware which stores various actions that should be executed when app is shut down.