What will happen if one of the instances of Hazelcast cluster will acquire lock and die in locked state? e.g.
if (hz.getCPSubsystem().getLock("lockName").tryLock(500, TimeUnit.MILLISECONDS)){
try{
System.exit(0);
}finally {
hz.getCPSubsystem().getLock("lockName").unlock();
}
}