Does your laptop overheat then shutdown on its own?
It may be time to have your cooling system checked out.
This is an inexpensive repair that can save you from having to replace your motherboard in the future.
Cleaning the heatsink from dust prevents the laptop to overheat and to shutdown at random....