Ensure that tempfiles are always removed