Port from deprecated ksmserver calls
Using KSMserver to shutdown has been deprecated for a few years. Port to the newer approach. This will work on Plasma 5.19 onwards.
I tested the relevant two lines in a standalone project. I have not tested this in the context of kdenlive due to unrelated errors.