 <p>Maybe the answers to this may help you:</p> <ul> <li><a href="http://stackoverflow.com/questions/177856/how-do-i-trap-ctrl-c-in-a-c-console-app">How do I trap ctrl-c in a C# console app</a></li> </ul>