Fixed issue with non-ZF2 exceptions