title: Release resources when stop debugging
body: <p>I use Visual Studio 2005 &amp; C#. In my FormClosing event I release some resources, that my application uses. But when I debug it and decide to stop (Stop debugging), than FormClosing event doesn't fire and my resources aren't properly released.</p>
  
  <p>How can I avoid this?</p>