SYSK 335: What Causes Windows to Blue Screen?

Ever wonder what are the circumstances of when Windows blue screens? To my knowledge, if an unhandled exception occurs in kernel-mode code (e.g. a privileged device driver or the OS kernel itself), Windows considers it too unsafe to keep running, so it stops all running applications and blue screens.