I found out that I can speed up the shutdown process when I kill the right kdeinit process. kglobalaccels can also be involved since at my first try the shutdown started immediately after I killed kglobalaccels. Before that I killed all running kdeinit processes.