Set state to SENT first. State will be set to FAILED if something goes wrong