Fix gzip premature close warning.