implemented proper m3u8 cleanup