Cancel consumers when workers are stopped.
Get configuration values from client.