Click on Start Menu -> Run.
In the Run text box, type regedit and then click OK or press Enter.
In the Registry Editor, navigate the following branch: HKEY_USERS\Default\Control Panel\Desktop
On the right panel of Registry Editor, search for AutoEndTasks registry key.
Double click on the key and modify the Value data to 1.
Click on OK when done.
Restart the Windows, the change will be effective.