A lot of people suffer from this problem everyday due to some bad files which have made a permanent place on their PCs.
In this situation after starting your computer, you see an error message on your computer after few minutes, "Unexpected behavior declared by some files in Windows. Windows need to restart (or shutdown) your computer to solve this error." Your computer restarts automatically, with this error message.
You may re-install Windows as many times...