catch NoDiagonalizationError exception and raise a problem flag