140405 changed the condition for breaking the measurement to be either backspace is pressed OR volt > voltmax OR there have been 3 consecutive measurements of resistance that are greater than (1-targtol)*targres. This version compiled and is running fine on a nw right now.  the scan hasn't finished so cannot confirm that exit condition is debugged.