title: How to run code before program exit?
body: <p>I have a little console C# program like </p>
  
  <pre><code>Class Program 
  { 
      static void main(string args[]) 
      {
      }
  }
  </code></pre>
  
  <p>Now I want to do something after main() exit. I tried to write a deconstructor for Class Program, but it never get hit.</p>
  
  <p>Does anybody know how to do it.</p>
  
  <p>Thanks a lot</p>