added logging and admin email support for 500 errors to ServiceResource