@override void handleFailure(String? errorMessage, void Function(String? error)? onError) { server?.close(force: true); super.handleFailure(errorMessage, onError); }