@Override
    public void close()  {
        try {
            onClose.run();
        } catch (RuntimeException e) {
            // We may want to avoid logging some exceptions that may be expected, like when session expires.
            log.log(Level.WARNING,
                    "Failed close application lock in " +
                    ZkApplicationLock.class.getSimpleName() + ", will ignore and continue",
                    e);
        }
    }
ZooKeeper implementation of {@link ApplicationLock}.

@author hakonhall
orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkApplicationLock.java