raise exception if send failed