This handler is called whenever a shutdown is requested.
Place all the code you need to handle your application shutdown in this command handler.
More information
Command Handlers.