You should potentially in a `finally` block, use `deflater.end()` to close open pointers.