stopAllAudioProcesses(): Fix termination awaiting code