Issue #20244: Fixed possible file leaks when unexpected error raised in
tarfile open functions.