Any defense that a contract or writing sued on is void or voidable, or was delivered in escrow, or which alleges any matter in justification, excuse, release or discharge, or which admits the facts of the adverse pleading but seeks to avoid their legal effect, must be specially pleaded.
Iowa. R. Civ. P. 1.419