wait for audio thread to quit on application exit