remove temp files after they are open.