title: Try/Catch Wrap Around Task.Run not Handling Exception
body: <p>I've been learning to use TPL and have an issue with an example I gathered from this <a href="http://blog.stephencleary.com/2013/07/taskrun-vs-backgroundworker-round-2.html" rel="noreferrer">article</a>. I copy and pasted the code exactly as in the Task.Run example but get an error message saying the exception isn't handled:</p>
  
  <pre><code>private async void button1_Click(object sender, EventArgs e)
  {
      try
      {
          await Task.Run(() =&gt;
          {
              Thread.Sleep(1000);
              throw new InvalidOperationException("Hi!");
          });
      }
      catch (Exception ex)
      {
          MessageBox.Show(ex.Message);
      }
  }
  </code></pre>
  
  <p>Here's a picture of the error:</p>
  
  <p><a href="https://i.stack.imgur.com/2DRQX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2DRQX.png" alt="enter image description here"></a></p>
  
  <p>Is this code example outdated or am I missing something?</p>