private void initShutdownHook() {
        Runtime.getRuntime().addShutdownHook(new CleanUpThread());
    }
Example client using visiting

@author Einar M R Rosenvinge
vespaclient-java/src/main/java/com/yahoo/vespavisit/VdsVisitTarget.java