Closes the current stream compressor and flushed any pending data into the base stream.
If the OwnsBaseStream property is set to True (the default value), then this method also closes the base stream and releases any resources (such as sockets and file handles) associated with it.