Add debugging output in case of an error in signing or sending a transaction.