I recently had an issue where my Macbook Pro refused to sleep. Assuming the worst I was resetting my SMC and PRAM and considering a reinstall when I happened upon a simple solution. Just make sure that there are no unprinted documents in any of the print queues on the computer. Deleting a stray print job solved the issue for me.