Added feature to end worker thread when main activity is destroyed.  Rearranged RecordAudio to comply.