           callback : => @modal.destroy()
 
     @showModal options
+    @quit()
+
+
   quit: ->
 
     KD.utils.killRepeat @autoSaveInterval

    @showModal options, =>
      @broadcastMessages.push origin: KD.nick(), type: 'ParticipantWantsToLeave'
      @modal.destroy()
      @rtm = null

      options = channelId: @socialChannel.getId()
      KD.singletons.socialapi.channel.leave options, (err) =>
        return KD.showError err  if err
        @setMachineUser [KD.whoami()], no, ->
          KD.singletons.router.handleRoute '/IDE'


  removeMachineNode: ->

      buttons      :
        quit       :
          title    : 'LEAVE'
          callback : => @modal.destroy()

    @showModal options
    @removeMachineNode()
    @quit()


  handleParticipantLeaveAction: ->
