Send email when task error out