internal void ConsumerClose()
        {
            ErrorCode err = LibRdKafka.consumer_close(handle);

            if (err != ErrorCode.NO_ERROR)
            {
                throw RdKafkaException.FromErr(err, "Failed to close consumer");
            }
        }