rename AutoCloseableHandler to NameServiceCloseHandler