A computer crash happens when the drivers are outdated, there is a fault in the hardware, or there is not sufficient airflow due to clogged fans. Bad sectors on the hard drive, corrupted registry, malware, and viruses can also cause an unexpected shutdown of your PC.