added lazy global exception handler