Using GZip requires that the streams are closed.