domain: Fix UoW thread local not being unset if Connection.close fails.
domain: Close connections if the UnitOfWork can't be constructed.
util: Refactor Jdbc.closeSafely to use overloads instead of varargs.