have ShutdownEventListener handle WM_CLOSE or SIGTERM
Merge pull request #3949 from birarda/master

have ShutdownEventListener handle WM_CLOSE or SIGTERM