title: Safely Closing A Thread
body: <p>I'm writing a bit of code that will open a MessageBox on a separate thread to prevent the MessageBox from stopping the program.  It is very very important that starting a new thread will not crash the program that I am running, but I don't know enough about threads to make sure this happens. </p>
  
  <p>My question is, after starting the thread, how can I safely dispose of it after the MessageBox closes?  I imagine closing/disposing of it is necessary so it's not just floating around after it is created and started. </p>
  
  <p>Please advise, thanks!</p>
  
  <pre><code>var Thread = new Thread
  (
      ()=&gt;
      {
          MessageBox.Show("Buy pizza, Pay with snakes");
      }
  );
  Thread.Start();
  </code></pre>