Remove temprorary files after close.