ensure tmp files are deleted