Warehouses are only a pain in everyones butts after they conquer a city. If ur worried about losing resources, build up defences and fill all the construction ques before u log off. If ur being attacked, all u have to do is run as much of ur resources out as u can, and then recall the tranporters right after the attack hits.