on and off

You really need to provide more info for us to suggest a solution. What is your course of action before it turns off? Which model it is? Does it produce any strange sounds or visuals before or in the moment of turning off?