Added a fallback exception handler directly into Pyrite