http://bugs.winehq.org/show_bug.cgi?id=23762
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2010-07-22 16:40:32 --- It seems that in the case where we terminate, we also get a callback to end_session_message_callback, telling us that WM_QUERYENDSESSION returned 0. This isn't actually true; the process terminated without returning. But we take this as a request to abort the shutdown process.