I think when the system is running software update, it won't let you put it to sleep (I've never tried, but it would make sense, Apple wouldn't want you interrupting the update). As for it being slow, it's probably overheated. Turn it off and let it cool down first. Since it was running closed in your bag, it probably got way too hot.