I would like to do some clean up of resources (e.g. remove of subscriptions) before entirely shutting down of the Azure function app.
Is there any provider to listen to shutdown events of the host of Azure function app? I can only find the startup file for dependency injection.