close method
Closes the client and cleans up any associated resources.
Terminates all active connections.
Implementation
@override
Future<void> close() async {
if (_server case var server?) {
await server.close();
}
await super.close();
}