Close gzip streams properly

Bug: 5479150
Change-Id: I5cdaeb32563b6c535c82a95d5bcbc3b40a4d608b
2 files changed