Note, it's not only with moveable targets. I've seen this happen when sending my slave gather an herb or mine a node.
They run to the herb and instead of picking it they sometime start spinning wildly around it.
I think this might be linked to latency as well, as I usually play with poor latency (400ms+)