title: Need to know when application is closing
body: <p>Is there a way to monitor when an application that is using the dll closes? The DLL and the application are both C#, neither are Windows Forms.</p>
  
  <p>I can check when the main application is closing, but I would like for the DLL to see "hey the program is closing and releasing me, I should do this real quick before I die".</p>
  
  <p>Any way to do it? Or am I stuck having the application dish out "do this before you die"?</p>