Add an exception for addins to request shutdown.
Cache the list of plugins instead of calculating it each time.
Handle the AddinRequestShutdown exception and rethrow.
Graceful shutdown if an addin requested it.