Term: 11th hour screwjob
Example: i almost landed that huge account, but then i got the 11th hour screwjob
Definition: "to royally screw someone out of a payday or "win" at the last minute when they least expect it