Yeah, I figured that the the arm would have hit the required position and the PID would have corrected and done this all for me at the time BEFORE the time terminated. In the last step, all the motors are set back to zero but at that point it was too late, what a shame

.