Fix bug where KDE doesn't shut down properly on logout
In wrapper.cpp, there is some code that was trying to ensure that kdeinit5 is up and active. However, this also happens for kdeinit5_shutdown which causes kdeinit5 and klauncher to be started up again (even though they shouldn't). This commit fixes that by moving the check for kdeinit5_shutdown to before the point where we try to ensure that kdeinit5 is initialized.