Updated to latest ModernHttpClient and replaced thrown Exceptions (to remove reliance on System.ServiceModel.Primitives.dll)