Bugfix, always close the .gz file