Use `with Closing(...) as f:` in JPKDriver._zip_segment().