Bug 8405: Add close check to NetconfDevice