refactored how errors are handled by the adapter polling process, sends emails with shared notification code