Added auto-down and cluster leaving on JVM shutdown