If you notice your laptop crashing, then for sure there is a problem with the hardware or the RAM of your laptop. There are chances that your laptop is being unstable because of the jam in the RAM. If you reboot the laptop and you see that there is a self correction program running, then you are actually lucky. However, there could be other problems as well.
To recognize the internal problem, you shall run a laptop diagnostics. If the software is bought from an authentic dealer then you will be able to fix the problem yourself. Usually when you buy the software at first, you get a bunch of CDs so that you can take care of the installation yourself. You shall select the software carefully in order to run the diagnostics on the operating system of your laptop.
If the problem in your laptop is with the hardware, the only choice you are left with then is to get a card known as PCI analytic installed in your laptop to get to the root of the error and then solve it instantly. Typically when your laptop is showing signs of irregular function, then probably you can't do much about it. Majority of the times, either you replace or reformat, in that case you are left with no option but make a backup of your database.
If there is a problem with the motherboard, then troubleshooting won't even help. Instead of letting the problems being created, try to stop such things by taking cautious measures. You shall perform regular checkups on your laptop, both on the software and the hardware by making a use of trusted websites. You can also find online tools to help you with the preventive measures.