A week ago I bought a Macbook Pro Retina (mid 2014) version - and in the first few days of running it I have noticed about 4-5 times that the Macbook occasionally restarts itself - so far always in sleep mode.
Even if the lid is closed, I can hear the opening chime when you restart a Mac.
I'm concerned that this is a hardware issue and one I'll have to go to Apple with, but I wanted to know if anyone else had this issue that they have already resolved, in case this is something that's due to software rather than hardware.
I don't believe there's a heat issue (I don't feel it running hot), and I don't believe there's a setting in 'System preferences' or similar that's causing this. Also, I haven't seen any note on the Macbook about a kernel panic.