catch mail exceptions