fix error handling in #relay_tx