I found this bug and Coldblooded recommended that I report it so devs can have a look at it.
Oh yes, this seems like a bug. I did the same thing and it works as expected for a few rotations then moves on past. I eliminated the cmd calls, and got the same result.
Lua:
local mq = require('mq')
for i = 1, 1000 do
print(i)
mq.delay(250)
end
I would put an issue up so the devs can track this.