In Windows 7, is there a way to designate a particular program to automatcially end task if it hangs?
===

I am running a sequence of simulations in windows 7 using a C++ program via python sub-processes. Sometimes, when an individual simulation is going to give a negative result, it will hang because things have gotten so messed up, rather than close gracefully through one of the exit conditions. This requires the user to watch the code execute so they can manually click through the end task pop-up to allow the set to proceed to the next simulation. Is there a way I could tell windows to always just end task this program if it hangs, without user intervention? This would allow the user to walk away and come back a few days later (yes it takes that long) and be confident that the process didn't get stuck 5 minutes after the user went to do other things.

Note that I want this program only to do this, not to alter the OS so every program self closes on hang.