I have an application in C# and it works as a client for a third party server software. I want my appliation to handle the situation when server crashes.
I tried to work with the process class and tried to use the Process.Exit event but it never fires when I close the application from the task manager.