when a laptop shuts down unexpectedly, no need to panic. It happened to me when I purchased an HP laptop for $400 and some change, date was in the later part of the year 2015 brand new, after a year of constant use, out of the blue it just shut down one day about a year after purchase it was then 2016. I tried to power it up again and it shut down immediately. I then realized it is a safety issue in the laptop itself, when the CPU gets to hot (processor chip). I then being with out a laptop fixed it myself. Of course I did not purchase an extended warranty through HP, so I was stuck with a very high quote to send it in for repair , so high of a quote I would be able to buy another brand new laptop for the price they quoted me. I automatically thought of the fan or dirt and dust built up on the fan and in the air ports one port to suck in air the other to expel, everything was clean, keep in mind it was only a year old to have that much dust inside the laptop anyway. The fan was working properly, I then purchase a heat sink for my model laptop, they do fail if not sealed properly the gases are released or it just evaporates over a period of time. The heat sink has plumbing tubing on it to hold contents of some form of gas my guess the same type in air conditioners. I purchased a new heat sink on Ebay for my model of Laptop for $13 and some change. I then purchased thermal paste for $3 . Thermal paste is a thick grease like substance that covers the CPU to assist in the cooling process. After doing this my laptop was resurrected $16 total to repair myself and an hour or so of my time to disassemble my laptop carefully and put it back together. Keep all screws organized take pictures if your going to try repair yourself. I am electronically and mechanically savvy as far as repairing things. It is now Nov. 2017 and my laptop is still working like it should for he money I spent on it. I hope I can help anyone with your issue, thanks for reading.
Brian