Changed handling of GzipFile instances.

GzipFile in Py 2.6 does not have closed attribute. Avoiding using it, or
handling attribute errors.