sometimes when the computer is shutting down I have a blue screen and the computer restarts . It drives me crazy

espcially when I let the pc on to shut down after a specific task . please help .
I know that I should attach sevenforums.zip but it's too big it is 71 MB what should I do