           Sorry, your terminal sessions on #{ vmName } are dead. <a href='#' class='plus'>Open a new session.</a>
           """, no, yes
         @dirty[vmName] = yes
-
 
     # terminalView.once 'KDObjectWillBeDestroyed', => @tabView.removePane pane
 

      pane.destroySubViews()
      pane.addSubView new WebTermView options

    terminalView.on 'TerminalCanceled', ({ vmName }) =>
      @tabView.removePane pane
      unless @dirty[vmName]
        @tabView.off 'AllTabsClosed'

        { terminalView } = pane.getOptions()
        sessionId = terminalView.sessionId ? terminalView.getOption 'session'
        vmName = terminalView.getOption 'vmName'
        "#{ vmName }:#{ sessionId }"
      storage.setValue 'savedSessions', sessions
      storage.setValue 'activeIndex', activeIndex
