Late 2013 retina MacBook Pro constantly restarting when in sleep mode
So I just got my brand new specced out retina MacBook Pro in the mail last night. I began setting it up but didn't finish before I had to go to bed. I left it with the screen closed (and assumed it would go into sleep mode soon after), an external hard drive hooked up, and plugged into the power adapter, and went to bed. During the night, it woke me up perhaps 10 times or so by making the startup sound and spinning up the external drive. The only time a Mac makes that sound is when it starts up, so as far as I can tell, it kept crashing during the night (presumably from trying to wake to do stuff in power nap mode), starting up, going to sleep, and repeating the cycle. When I turned it on in the morning, it gave me a message saying that it restarted due to a sleep to wake failure. Is this a known issue? Is there a way to fix it? Is the laptop defective? Or is it a software issue? Should I take it into an Apple store to figure it out?
MACBOOK PRO (RETINA, 15-INCH, LATE 2013), OS X Mavericks (10.9)