Fixed erroneous removal of application

git-svn-id: https://hyracks.googlecode.com/svn/branches/hyracks_dev_next@1118 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/work/ApplicationDestroyWork.java b/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/work/ApplicationDestroyWork.java
index ac780c4..fc86c4c 100644
--- a/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/work/ApplicationDestroyWork.java
+++ b/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/work/ApplicationDestroyWork.java
@@ -39,7 +39,7 @@
     @Override
     public void run() {
         try {
-            final CCApplicationContext appCtx = ccs.getApplicationMap().remove(appName);
+            final CCApplicationContext appCtx = ccs.getApplicationMap().get(appName);
             if (appCtx == null) {
                 callback.setException(new HyracksException("No application with name: " + appName));
                 return;