It's not safe to allocate a new Deflater outside of a Task like this. If we run the same `Process` in two different threads, both threads will close over the same mutable state in `Deflater` and you'll get unpredictable behavior. The `Deflater` should be allocated in the first argument to `resource`... going to fix this now.