I found some event error logs on the build agent.
Application: MSBuild.SonarQube.Runner.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.WebException
at System.Net.WebClient.DownloadDataInternal(System.Uri, System.Net.WebRequest ByRef)
at System.Net.WebClient.DownloadString(System.Uri)
at SonarScanner.MSBuild.PreProcessor.SonarWebService+<>c__DisplayClass15_0.<DownloadServerVersion>b__0()
at SonarScanner.MSBuild.PreProcessor.SonarWebService.DoLogExceptions[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`1<System.__Canon>, System.String, System.Action`1<System.Exception>)
at SonarScanner.MSBuild.PreProcessor.SonarWebService.DownloadServerVersion()
at SonarScanner.MSBuild.PreProcessor.SonarWebService.GetServerVersion()
at SonarScanner.MSBuild.PreProcessor.SonarWebService.GetProperties(System.String, System.String)
at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.FetchArgumentsAndRulesets(SonarScanner.MSBuild.PreProcessor.ISonarQubeServer, SonarScanner.MSBuild.PreProcessor.ProcessedArgs, SonarScanner.MSBuild.TFS.TeamBuildSettings, System.Collections.Generic.IDictionary`2<System.String,System.String> ByRef, System.Collections.Generic.List`1<SonarScanner.MSBuild.Common.AnalyzerSettings> ByRef)
at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.DoExecute(SonarScanner.MSBuild.PreProcessor.ProcessedArgs)
at SonarScanner.MSBuild.BootstrapperClass.PreProcess()
at SonarScanner.MSBuild.BootstrapperClass.Execute()
at SonarScanner.MSBuild.Program.Execute(System.String[], SonarScanner.MSBuild.Common.ILogger)
at MSBuild.SonarQube.Runner.Program.Main(System.String[])
and
Faulting application name: MSBuild.SonarQube.Runner.exe, version: 4.7.1.2311, time stamp: 0xc359daed
Faulting module name: KERNELBASE.dll, version: 6.1.7601.24499, time stamp: 0x5d0115f1
Exception code: 0xe0434352
Fault offset: 0x000000000000b87d
Faulting process id: 0x2228
Faulting application start time: 0x01d5e4bebe72e7dc
Faulting application path: D:\BuildAgent\tools\sonar-scanner-msbuild.4.7.1.2311\MSBuild.SonarQube.Runner.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 295dfec8-50b2-11ea-9020-0050568c7ddc
The agent has these .NET library framework installed.
From the earlier post I have upgraded the SQ runner to sonar-scanner-msbuild.4.7.1.2311