title: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property
body: <p>These are my tasks. How should i modify them to prevent this error. I checked the other similar threads but i am using wait and continue with. So how come this error happening?</p>
  
  <blockquote>
    <p>A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.</p>
  </blockquote>
  
  <pre><code>    var CrawlPage = Task.Factory.StartNew(() =&gt;
  {
      return crawlPage(srNewCrawledUrl, srNewCrawledPageId, srMainSiteId);
  });
  
  var GetLinks = CrawlPage.ContinueWith(resultTask =&gt;
  {
      if (CrawlPage.Result == null)
      {
          return null;
      }
      else
      {
          return ReturnLinks(CrawlPage.Result, srNewCrawledUrl, srNewCrawledPageId, srMainSiteId);
      }
  });
  
  var InsertMainLinks = GetLinks.ContinueWith(resultTask =&gt;
  {
      if (GetLinks.Result == null)
      {
  
      }
      else
      {
          instertLinksDatabase(srMainSiteURL, srMainSiteId, GetLinks.Result, srNewCrawledPageId, irCrawlDepth.ToString());
      }
  
  });
  
  InsertMainLinks.Wait();
  InsertMainLinks.Dispose();
  </code></pre>