handle send failed and retry