Closes the client and cleans up any associated resources.
Terminates all active connections.
@override Future<void> close() async { if (_client case var client?) { client.close(); _client = null; } }