Close gzip filter

Ensures that the gzip output stream is closed before the filter
completes. This ensures that the complete gzipped content is written to
the client before the connection terminates.
Merge branch 'filter-improvements'