Fixed zip generation on both AIPDownload & DIPDownload (zip file wasn't being closed properly)