Malware can always be the cause of all kinds of problems with a MacBook pro. Make sure your PC is clean and that you check it often. Having an older version of OS on your MacBook Pro is also a big problem. This can cause your MacBook to shut down for no reason.