prevent the loss of the messages when destroy the consumer.