Merge "Close the GZIPOutputStream to release the deflater" into sc-dev