 
       machine.getBaseKite( createIfNotExists = no ).disconnect()
 
-      @_clearTrialCounts machine
-
       call = @kloud.destroy { machineId: machine._id }
 
       .then (res)=>
 
         log "destroy res:", res
+        @_clearTrialCounts machine
         @eventListener.addListener 'destroy', machine._id
 
       .timeout ComputeController.timeout


      if @_trials[machine.uid][task]++ < 2
        info "Trying again to do '#{task}'..."
        KD.singletons.computeController[task] machine
        return yes



            machines.push machine

        @machines = machines
        @stateChecker.machines = machines
        @stateChecker.start()

        cb null, machines  for cb in queue
        queue = []
