public void shutdown() {
        try {
            globalPending.waitForZero();
        } catch (InterruptedException e) {
        }
        sender.close();
    }
Creates a new shared sender.
If oldsender != null, we copy that status information from that sender.
vespaclient-core/src/main/java/com/yahoo/feedapi/SharedSender.java