It tends to be a bad idea to do this, especially when you move around with it. The hard drive will still be spinning, so if you bump/drop/harm it when you move it, then there's always the risk of disk damage. Furthermore, the laptop is designed so that some heat is released from the keyboard; closed-lid operation inhibits dissipation of that heat.