configure email notification on failure