Often, contingent punishments are handed down on a management-by-exception basis, in which the exception is something going wrong.
Managers typically impose contingent punishments when an exception occurs, which happens when things go wrong.