Sounds like the lid sensor under the HDD is failing. Suggest you to bring it back to Apple to have it checked out. All MBPs has a magnetic sensor that detects the screens magnet and put it into sleep
I might do this. I was told by my local Apple Store they would book an appointment for 30 minutes to try to resolve my issue. Can't believe I visited a Genius Bar 3 times in one week.
----------
I thought it might help if I explain my problems in detail:
The story starts when I call AppleCare about my MacBook Pro problems. I was out of warranty so it makes sense they would refuse service. The gentleman on the phone offered suggestions so I took his word for it to bring it to the Apple Store.
My MacBook Pro Mid 2012 was taken in for service to the Genius Bar four days ago with; a Shift key that fell off, Spotlight not indexing the hard drive, and my MacBook Pro waking up from sleep when the lid was closed. I signed off on service for repair, and within three days I got a call from a Genius stating they reinstalled OSX Mountain Lion (and replaced Shift Key) and that my sleep issues were caused by Caffeine, the third party app that keeps your Mac awake. I assumed this guy was right since he was a Genius, but I quickly found his solution was not a solution after all (which is to install no third party apps, which means don't install apps other than Apples)
I bring my MacBook home and guess what? Sleep issue is still there but there is another problem, iTunes no longer works (it crashes every single time) and my MacBook Pro is so SLOW that it can't even do simple task like opening Finder. SMC reset and PRAM reset didn't fix this.
I call my local Apple Store demanding to speak to the manager, and she offers her apologies and I tell the manager I am not going to wait 3-5 days to have my MacBook "fixed" again. So I also tell the manager that if an OSX restore is necessary, it would be done right there and then, not later. Funny enough, every Apple device I purchased from this store was defective in some way.
After being extremely angered, I call AppleCare (even though I am still out of warranty) and state I spoke to the manager and that she gave me permission to get free AppleCare service for this one time (which is not true). The lady on the phone got permission to help me and we ended up reinstalling the whole entire OSX, and my MacBook Pro is back up to speed. Fast and good to go. But one issue still persist, my Sleep/Wake issue. Is this caused by a third party app? NO, because I have reinstalled OSX and set up as a NEW Mac, nothing transferred.
I am confused as what to do now, should I go back to my Apple Store? AppleCare wont help me because it obviously isn't a software issue. My Sleep/Wake problem is as follows:
MacBook is on, lid open. I tell it to go to sleep, and it does (with lid still open). I close the lid, and guess what? The MacBook wakes up but then goes back to sleep after a minute. Why is it bad? Well, I don't want damage to data stored on my hard drive if I decide to move it right away.