Fixes the non stop on window closing -- music/video stops playing if the window is closed