Randomly shuts down when not connected to an external display.
MacBook Pro Retina, 15-inch, Late 2013.
My Mac is working properly only with the connected external monitor (through hdmi) on battery or on power supply. If the external monitor is not connected, my mac hangs up and shutting down.
PowerBook, macOS High Sierra (10.13.3), (Retina, 15-inch, Late 2013)