Catch transaction errors