Fix cleanup of temporary files.
Review Request #9718 — Created March 2, 2018 and submitted
A typo was preventing the successful cleanup of temporary files after
each tool was run. This change fixes that up. A longer-term goal of mine
is to fix up the temporary file stuff to make things work via context
managers but for now this will at least stop people's temp directories
from filling up.
Ran some tools and saw that tempfiles weren't left over.
Was this hitting a NameError sometimes and causing the following code not to run?