How do I detect if windows is shutting down?

Printable View