 
     @terminal.sessionEndedCallback = (sessions) =>
       @emit "WebTerm.terminated"
+      @clearConnectionAttempts()
 
     @terminal.setTitleCallback = (title) =>
       #@tabPane.setTitle title

class WebTermView extends KDView

  viewAppended: ->
    @container = new KDView

      mainView = KD.getSingleton "mainView"
      mainView.toggleFullscreen()
      event.preventDefault()

  initBackoff: KDBroker.Broker.prototype.initBackoff