We can solve this problem with a simple trick.
Write "regedit" in Run box. Click Enter.
Go to HKEY_CURRENT_USER/Control Panel/Desktop. Now in the right side click twice AutoEndTask. In the value data change 0 to 1. Click OK.
From next time Not Responding program will never show & computer will not halt.