When I used to Logoff or ShutDown, WOWEXEC would invariably not respond and I would have to press "End Task".
Edit HKEY_USER\.DEFAULT\Control Panel\Desktop and add
value AutoEndTasks REG_SZ. Set it to 1.
Edit HKEY_USER\YourUserId\Control Panel\Desktop and add value AutoEndTasks REG_SZ. Set it to 1.
This forces any task, that does not respond to the shutdown, to end.
You can also Add Value of WaitToKillAppTimeout
with type REG_SZ.
The default: is 20000 milliseconds (20 seconds). If the user process does not end by this time, AutoEndTasks is invoked.