Catch an exception if we can not setup a database transaction.