     else
       @createNewTab vmName: vmName, mode: 'create'
 
-  setTerminalTimeout: (vmName, delayMs) ->
+  setTerminalTimeout: (vmName, delayMs, isRunningCallback) ->
     vmController = KD.getSingleton 'vmController'
     vmController.info vmName, KD.utils.getTimedOutCallback (err, vm, info)=>
       if err

      unless vmName
        return @setMessage "It seems you don't have a VM to use with Terminal."

      @setTerminalTimeout vmName, 15000

  showApprovalModal: (remote, command)->
    modal = new KDModalView

        KD.mixpanel "Open Webterm, fail", {vmName}

      if info?.state is 'RUNNING'
        isRunningCallback()
      else
        vmController.start vmName, (err, state)=>
          warn "Failed to turn on vm:", err  if err
