better error handling for #create_tx and #assemble_tx command