Wait for sounds to finish when quitting (fixes #73)