Fixing gzip output and exception handling