moving onto next command if robot stops in robot c

we are programing vex iq, using robot c, in autonomous mode. currently, our robot doesnt have the distnace sensore (hopefully coming soon)… anyway, is there a way to program, using robot c, for the autonomous program to move onto the next line in the autonomous program if it stops… ie, we have it set to move forward, 4 rotations, at 50 speed. however, sometimes it runs into the wall and the program will not continue onto the next command because the robot never reached the 4 rotations. can i put a line in that says if the robot stops, or motors stop turning, then continue with the program. thanks in advance for any help.