Automatically close non-responding programs
Run regedit, navigate to the following key:
1. HKEY_CURRENT_USER\Control Panel\Desktop
2. in the right pane, right click the entry AutoEndTasks.
3. Select Modify.
4. In the Value Data field, change the value to 1.
5. Click OK, and close the registry editor.
If you want to change Windows back to the default behaviour (not closing unresponsive programs, just repeat the process and change the value back to 0). You'll need to restart the system for the change to take effect.