function closeZlibStream (stream) {
	  if (stream._hadError === true) {
	    var prop = stream._binding === null
	      ? '_binding'
	      : '_handle';

	    stream[prop] = {
	      close: function () { this[prop] = null; }
	    };
	  }

	  stream.close();
	}
Close a Zlib stream.

Zlib streams below Node.js 4.5.5 have a buggy implementation
of .close() when zlib encountered an error.

@param {object} stream
@private