shutdown method
Shutdown all channels
Implementation
Future<void> shutdown() async {
await Future.wait([
if (_leaderDiscoverer != null) _leaderDiscoverer!.dispose(),
..._channels.values.map((e) => e.shutdown()),
]);
_channels.clear();
_credentials.clear();
}