http://bugs.winehq.org/show_bug.cgi?id=18753
--- Comment #12 from Vincent Povirk madewokherd@gmail.com 2009-12-10 12:15:31 --- I did some testing and asked wine-devel (see http://www.winehq.org/pipermail/wine-devel/2009-November/080104.html), and it seems the correct behavior is for wineboot to kill each process after all its windows have returned from the WM_ENDSESSION message.