fix tarfile closure support.