handle rpc errors more gracefully, dont try to push a tx that fails sendrawtransaction