close gzip stream