removed the audio error appearing sometimes after closing the window