Use MVar to stop the audio thread cleanly