Is it is possible to do something when the Java program exits abruptly?
<p>I need to record an log if the program exited abruptly or with any exception. For example, when someone presses <code>Ctrl+C</code> while running program, I need to log that it exited abruptly. How can I do this?</p>
