private static boolean isSSLHandshakeCancelled(SSLHandshakeException e) throws IOException {
		if (e.getMessage().indexOf("bad_certificate") > 0) {
			if (ApplicationKeyManagerFactory.getPreferredKeyStore() == null) {
				throw new IOException("User PKI Certificate not installed", e);
			}
			// assume user cancelled connect attempt when prompted for cert password
			// or other cert error occurred
			return true;
		}
// TODO: Translate SSL exceptions to more meaningful errors
//		else if (e.getMessage().indexOf("certificte_unknown") > 0) {
//			// cert issued by unrecognized authority
//		}
		return false;
	}
After running the task, this method will return the server handle
if the connection was successful.  If null, a connection error
may have occurred ({@link #getException()}, or the task was cancelled
by the user if both the exception and handle are null.
@return server handle or null if connection attempt failed or was cancelled
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/client/ServerConnectTask.java