disconnect method
Gracefully disconnects from the Haveno daemon by shutting down the channel.
Implementation
Future<void> disconnect() async {
if (!isConnected) {
return; // Not connected, do nothing.
}
await _channel!.shutdown();
_resetClients();
}