My MacBook Pro is not sleeping when I close the lid on battery
Have a look at this answer which indicates the commands to help you analyse if any process is blocking the sleep of your MacBook.
If nothing is blocking it, then look at :

egrep -i 'sleep|wake' /var/log/kernel.log


and look if you see a sleep line at the time you close the lid. If you don't, look at any information message in:

/var/log/kernel.log


around the instant this event should have happened.
Create a test account, close your session, and open one with this test account. Is your MacBook entering sleep when you close the lid?