FELIX-142

Surrounding the unregistering function with a try/catch block. 



git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@443359 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java b/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
index 281fdae..e70cc77 100644
--- a/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
+++ b/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
@@ -186,7 +186,12 @@
   private void clean(){
     this.removeAll();
     for ( Iterator i=pluginList.keySet().iterator(); i.hasNext();) {
-      ((Plugin) pluginList.get(i.next())).unregisterServicePlugin();
+     Object o=i.next();
+     try {
+      ((Plugin) pluginList.get(o)).unregisterServicePlugin();
+     }catch(Exception e){
+      System.out.println("INFO Something went wrong when unregistering the Plugin. Please control the beavior of the unregisterServicePlugin function of this tab"+o);
+     }
     }
   }