Potential fix for issue #5637

Potential fix for issue #5637:
Create a null handler for CTRL_LOGOFF_EVENT. This event is not being sent on Windows 7 so I can't verify that it works but I can verify that the handler is active by adding a log statement.