Fix potential leak from unclosed zipfiles