Sporadic Issue: Unable to delete the SonarAnalyzer.CSharp.dll from TeamCity build temp resulting incorrect report

Sonar versions: 7.0.0.36138

Issue: The TeamCity build clean up(Swabra) feature fails to delete following SonarAnalyzer.dll files when VBCSCompiler process is in use during continuous analysis step. This resultingi in incorrect analysis report.

Workaround: Just re-run the CA manually with clean build as a workaround.

Logs
Failed to delete file:
TeamCity\BuildAgent\temp\buildTmp\VBCSCompiler\AnalyzerAssemblyLoader\GUID\1\SonarAnalyzer.CSharp.dll

Failed to delete file: TeamCity\BuildAgent\temp\buildTmp\VBCSCompiler\AnalyzerAssemblyLoader\GUID\2\SonarAnalyzer.dll

Unable to cleanup build temporary directory: TeamCity\BuildAgenttemp\buildTmp