Stop playback of the audio recording when closing the app.