The available options for what to do when the lid is closed in "Power Management Preferences" does not include "nothing". But, sometimes, you want your docked laptop to operate when closed. Here's how to disable the sleep/hibernate/blank screen when the laptop lid is closed:
Go To: apps-->gnome-power-manager-->buttons
Set lid_ac and/or lid_battery to "nothing" (without the quotes).