Don't crash if zlib streams don't have a close() method.