Added better error handling for what a transaction fails. The error is now logged but doesn't stop the program from executing.