close zip files after writing them