Sorry that I missed this before, `ZipFile` holds a file descriptor and so needs to be closed after use, so the code below should be in a try finally block with the file being closed in the finally block.