it happened to me once.
Chech you cpu fan power is plugged into the right socket. My cpu fan was so dirty, so I unpluged and cleared it. After i put it on again, I got similar problem. Later my friend find out I put the cpu cooling fan on to a wrong socket. that socket is for other usage and fan can't be detected. So program shut power off.