title: Create separate thread on application exit
body: <p>Is it possible to create a separate thread on application exit that will continue to run (after the application closes) until the thread finishes its work?</p>
  
  <p>I'm using C# and I have a case where I want to exit an application but at the same time kick off database interaction that will fire off stored procedures. My problem is that I can have a variable number of Stored Procs to execute, but I do not want to cause the application to hang or be slow to exit.</p>