Using KSMserver to shutdown has been deprecated for a few years. Port to the newer approach. This will work on Plasma 5.19 onwards.