Not sure what is going on but it keep losing X machine cords.

My operation has tool changes, I change the tool and set it off the work piece.
I hit run and it slowly goes back to where it...