The problem is that KDE *waits* until the logout sound is played. It should just fire a command that exits itself when finished playing (aplay?). Of course the Linux sound stack is so awkward that this is just a dream... Disabling logout sound is no solution.