FELIX-1858 - Remote commands via ssh only work once per restart


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@834355 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java
index ed92238..5b8dca5 100644
--- a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java
+++ b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java
@@ -103,9 +103,6 @@
         {
             out.flush();
             closure.session.service.threadIO.close();
-            tIn.set(in);
-            tOut.set(out);
-            tErr.set(err);
 
             try
             {
@@ -122,6 +119,11 @@
             {
                 e.printStackTrace();
             }
+
+            tIn.set(null);
+            tOut.set(null);
+            tErr.set(null);
+
         }
     }
 }