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.
domain: Still call close if setUpdater(null) fails.
Merge branch 'master' into stable

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