I have looked for this (see below) key on 6 up to date Win 10 PCs and found is no such entry. Only 1 of these PC has 'Task Host Window' issue
HKEY_CURRENT_USER/Control Panel/Desktop/WaitToKillServiceTimeout
What happens if this parameter is not set?