Clean up temp on shutdown, misc tweaks