on consumer close(), wait for pending fetch requests to complete and update offsets when done.