+ # wait until the current batch of messages is done, then kill
+ # the rmr connection. I debated putting this in "loop" however
+ # if the while loop was still going, setting mrc to close here
+ # would blow up any processing still currently happening.
+ # Probably more polite to at least finish the current batch
+ # and then close. So here we wait until the current batch is
+ # done, then we kill the mrc.
+ mdc_logger.debug("Setting flag to end RMR work loop.")