delete tmp files after use for attachment export

why not in a finally?