Add better logging for unexpected errors while sending transactions