title: Detect End Process From Task Manager In C#
body: <p>I have an application in C#, and would like to monitor its current status, i.e. whether its running or closed. So far i am able to track the status if the application exits during a run time error, or any other in application exit codes. </p>
  
  <p>But i am unable to log the application status when it is force closed by task manager.</p>
  
  <p>Is there a way to monitor End Process events? or do i have to design a separate service to keep a watch on my application (which i find would be a waste of resources)?</p>
  
  <p>Brief History:
  The application is a WCF subscriber Application that is meant to run as a background process and receive data from the server. I don't want to use a windows service as i am designing a GUI which allows the clients to send requests to the server for specif data.</p>
  
  <p>This application is linked to another application which keeps track of the subscriber whether, the subscriber is online or offline. </p>
  
  <p>Thus was looking for a way to track abrupt application close and notify the users accordingly. </p>