Now sends emails on 500 errors