Gzip Error Fix

This reverts the bad change (1aa8572d46a1822a58baa6188a401886d37898af) that got included in the 1.2.1 release and then adds the extra functionality that was originally desired (namely ensuring files are closed after parsing).

See changelogs on commits for more details. :eyes: