Added email alerts for 500 errors