fix transaction manager close operation
add commit management to Factories