I managed that too 2-3 times (in 2 years of playing), but now that I see it from outside, I got a theory: Couldn't it be that the jump from the sudden fixing of the damage caused your car to move slightly? If it does, it would explain why the pit stop was being aborted...