Shutdown cause: -104 I have Macbook Pro retina, model 2013. It started to randomly shut down for no apparent reason. The system log always contains this message:


  Previous shutdown cause: -104


I have tried to reset SMC and PRAM several times. It did not help. The hardware test found no errors. I have tried to google the meaning of shutdown code "-104", but I could not find anything.

Can anyone please provide any info about what's going on and possibly how to fix it? Thanks.
It appears to be battery related. It may be related to -103, however both indicate that you should check the battery. Try running the laptop from the charger and see if the laptop still unexpectedly shuts down. Also check to see if there are any spurious sensor readings for the battery using iStat Menus or equivalent which may indicate the laptop trying to protect itself by shutting down.


  -103
  Battery cell under voltage detected.
  Check battery.
  
  -104
  unknown
  Check battery.


Source: Shutdown Causes