tracking down this error when build folder isn't deleted
must close the temp file, else folder won't delete