Some changes to debugging/error-handling and increase of sleep-to-move-ratio for stability.
Seems to avoid hangs, needs testing. Stuff maybe slow with all that yielding.