Is there feedback for connection failed client side?

So I’m using my own server browser and currently connect to clients like so:
currentPlayerController->ConsoleCommand(TEXT("open " + gameInstance->serverIP), true);

However in testing with friends sometimes the connection fails. In trying to troubleshoot this and give better feedback to the client is there a listener or something that gets called when connection fails and why that I can pass on to the user?

Yeah, bind to OnNetworkFailure, like this:

GetEngine()->OnNetworkFailure().AddUObject(this, &UCustomGameInstance::HandleNetworkFailure);

Thanks! That worked.