MULE-7907: Ensure to call close method when on commit and rollback in DB...

... module.