When we failed to connect, show the error in a dialog instead of std::terminating.