Like me you've probably had that thought or feeling of "phew! a narrow escape". It happened to me recently when at the very last hurdle I realised that the race wasn't the right one and winning wasn't worth the effort.
The sense of relief is palpable when this happens, in my experience. Life's too short to be going off in the wrong direction. Especially where there are other races, already in training for, that take us further in the right direction. Or less in the wrong direction. Whatever way you look at it.