added exception handling to new transaction usage.