+ if (netconfClientDispatcher != null) {
+ try {
+ netconfClientDispatcher.close();
+ } catch (Exception e) {
+ logger.warn("Unable to close connection to netconf {}", netconfClientDispatcher, e);
+ }
+ }
+
+ try {
+ nettyThreadgroup.shutdownGracefully();
+ } catch (Exception e) {
+ logger.warn("Unable to close netconf client thread group {}", netconfClientDispatcher, e);
+ }
+