Ensure tmp files are removed