There may be a provision as follows:
"Illegal Occupation: The insurer shall not be liable for any loss to which a contributing cause was the insured's commission of, or attempt to commit, a felony or to which a contributing cause was the insured's being engaged in an illegal occupation."