Stop audio when exiting or switching away from the app and fix newlines