I have a mid-2012 MacBook (non-retina). Recently I've noticed that after closing the lid to put it to sleep, once it's sleeping if I pull or attach the MagSafe connector to it it will turn on from sleep, with the lid still closed, and go back to sleep after around 30 seconds.
Is this behavior normal? Should I be worried? Is there a way to disable it?