Shutdown consumers in a way that is less likely to lose messages