If im running a console application, something simple looping on the
user input, is there anyway i can detect that the application is
shutting down from a OS kill message?