The plugin manager will shutdown a plugin before it removes it. The plugin's shutdown() method is called only if it has been successfully initialised.