So far, I've haven't had to deal with something that bad, but that doesn't mean I've had to deal with last-minute crud on MK7 and MK8. There have been times where right before I cross the finish line in first place (and I'm talking like a split-second), I get either blue-shelled or zapped by lightning, costing me three coins. The good news would be I still finished first. The bad news would be that I finished with 7 coins instead of the max of 10.
There have been times were I was able to beat the blue-shell. I still get nabbed with it after the finish line obviously, but I technically don't lose the three coins.