delete temp files at closing