static bool ReportNonFatalWatson(Exception e, CancellationToken cancellationToken) { // ServiceHub may throw non-cancellation exceptions if it is called after VS started to shut down, // even if our cancellation token is signaled. Do not report Watson in such cases to reduce noice. if (!cancellationToken.IsCancellationRequested) { RemoteEndPoint.ReportNonFatalWatsonWithServiceHubLogs(e, LogMessage); } return(true); }