Relatedly, if all buildings that store the resource are destroyed while units are still harvesting it, when they have a full load, they will repeatively use that "picking up the resource" animation until you manually command them to do something else.
To reproduce, start a game, send some workers/initiates to harvest gold, then destroy the castle/mage tower and watch them "pick up the gold" forever
.