added handling for general errors in notifications