properly close zip file so that it can be deleted