How long can it remain on before it does that behaviour? Could it be that the battery runs out of power or does it when connected to mains electrics? Are you expecting a restart after, say, a Windows update?
Sorry there are more questions and no answer but this could be caused by many things.