Index: /trunk/FACT++/scripts/Main.js
===================================================================
--- /trunk/FACT++/scripts/Main.js	(revision 18729)
+++ /trunk/FACT++/scripts/Main.js	(revision 18730)
@@ -520,5 +520,5 @@
 
     //unlock drive if task was sleep
-    if (type=="sleep")
+    if (type=="unlock")
         dim.send("DRIVE_CONTROL/UNLOCK");
 
@@ -537,5 +537,5 @@
         dim.wait("FEEDBACK", "Calibrated",   3000);
 
-    if (type!="sleep")
+    if (type!="unlock")
     {
         dim.send("BIAS_CONTROL/DISCONNECT");
@@ -1075,5 +1075,5 @@
     case "SUSPEND":
     case "SLEEP":
-        Shutdown("sleep"); //GoToSleep();
+        Shutdown("unlock"); //GoToSleep();
 
         dim.log("Task finished ["+obs[sub].task+"].");
