eMachine: temp gettin too high/ insufficient memory
most prebuilt machines are programmed to shut off if the heat is too much or you don't have enough cpu/memory power to avoid damage/ overheating, and games are one of the things that use the most memory
Solution- Buy more fans/memory
HP: Probably a corrupt file
Easiest Solution- reformat windows
hope that helped!