If tarfile runs into a problem, close it; if lzma runs into a problem, close it and delete the file