Shutdown plugins

Added shutdown functionality to the `IPluginInitializer`. Updated all plug-ins and implemented shutdown procedure in the plug-in manager.