clean up tmp when done