I just don't believe the market was made for a player to stick and hold things out there when they are under attack. Yea maybe locking the button under an attack is not the greatest idea.

Maybe while being plundered the orders on the market are still added to the resources while being plundered.

Warehouses are there for a reason folks.