comeuppance /(kŭm`ŭp"pans)/

come·up·pance

comeuppance

n.
  1. An unpleasant experience a person endures, which is viewed by others as a just retribution for bad behavior; just deserts; as, the Senator took bribes for years, and finally got his comeuppance when he was caught in a sting operation.