09 July 2014

Check NoSleep:

OS X does not provide an option to prevent laptops from entering sleep mode when the lid is closed. NoSleep allows you to close your laptop’s lid without disrupting downloads or anything else you may have running. And it’s free.