Issue #16477: Close tarfile internal handlers in case of exception.
Issue #16477: Close tarfile internal handlers in case of exception.

Patch by Serhiy Storchaka.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator