add a shutdown method on consumer.