OpenTSDB: Explicitly close the gzip writer to prevent truncated files (https://rbcommons.com/s/pepperdata/r/3006)
This seems to fix the 0 length gzip file issue.