Add exception handling to cfn fact.