wait until done sound is finished

currently the process exits before the done sound is played, fix it to exit after the sound.