Override default WM_QUERYENDSESSION handler
Override default WM_ENDSESSION handler