Unify start/close transaction in data injector services