add normalize_error function, fix should_send_email
remove debug code, use label as subject, add timestamp to email