Set auto stop upon movement completion

Stops the program using stopProgram() when the motors' movement is
complete and the camera is disabled or when the max shots is reached.