Wait for audio to finish before shutting UI down