print("Disconnecting from the network...");
node.disconnect();
}
// stop file observer
IFileObserver fileObserver = menus.getFileObserverMenu().getFileObserver();
if (fileObserver != null && fileObserver.isRunning()) {
print("Stopping the file observer...");
try {
fileObserver.stop();
} catch (Exception e) {
printError(e);
}
}
}