An idiom describing a situation where one nears task completion but fails to finish.
I did one last dungeon to try and hit level 100 but I got Dol'd and was 100 XP away.