I have a late 2013 27" iMac running Yosemite, and it randomly shuts off every now and then. I tried everything Reset SMC. Diagnostics, reformat Macintosh HD but still occurs and running out of options.
3 Answers
If this is new behavior, blame it on Yosemite, file a report, and update whenever available. I'm on Beta 3 or 4, and am just now occasionally logged out at random. Earlier glitches have been fixed, as will this one.
In general shutdown cause -62 means:
Watchdog timer detected unresponsive application, restarting the system.
So you're advised to troubleshoot your system for any stuck application, startup item and any loading preferences. So try to clean up your system, or reinstalling macOS also may help.
Related: Are OS X shutdown cause and sleep cause numbers listed/explained anywhere?
Remove externals for now and do a Safe Boot. See Apple Support page on Kernel Panics for more info, procedures.