 
         let diff = Date().timeIntervalSince(self.currentStepFlags["checkTargetDeviceGotConnectedStartTime"] as! Date)
         if (diff > MeshSetup.deviceConnectToCloudTimeout) {
-            self.currentStepFlags["checkTargetDeviceGotConnectedStartTime"] = nil
             self.fail(withReason: .DeviceConnectToCloudTimeout)
             return
         }


        let diff = Date().timeIntervalSince(self.currentStepFlags["checkTargetDeviceGotClaimedStartTime"] as! Date)
        if (diff > MeshSetup.deviceGettingClaimedTimeout) {
            self.currentStepFlags["checkTargetDeviceGotClaimedStartTime"] = nil
            fail(withReason: .DeviceGettingClaimedTimeout)
            return
        }

            if (self.canceled) {
                return
            }

            if (result == .NONE) {
                self.setSetupDone()
            } else {
