Added some code to make sure the zipfile is closed during the install process to prevent exceptions trying to clean up the tmp dir on Windows