Explicitly destroy plugins
A plugin may need to access kwinApp() or kwinApp()->platform() during tear down, but the problem is that plugins are destroyed after the kwinApp() object. The plugin manager must be destroyed explicitly while the application is still valid to ensure that no crash will occur during compositor teardown.