hls output and cleanup