You are right.
I moved the synchronized(bufferPacker) up, right before the beginning of the try/catch block surrounding
```
gzipOutputStream.write(bufferPacker.toByteArray());
```