Close zipfile. fixes #1798