Hello,
See if these steps helps you:
-Open Registry Editor.
-Go to HKEY_CURRENT_USER\Control Panel\Desktop.
-In the right pane, right click the empty space and choose New >DWORD Value.
-Rename the newly created DWORD (REG_DWORD) as AutoEndTasks.
-Double click on it and change its value to 1.
Hope this helps!