Review the code and connect the audioUnit's stop with the applicationDidEnterBackground in the AppDelegate