           else
             KD.utils.killRepeat repeat
             @stopCollaborationSession =>
+              @quit()
+
               new KDNotificationView
                 title    : "@#{@collaborationHost} has left the session."
                 duration : 3000
-              KD.singletons.router.handleRoute '/IDE'
 
 
   removeParticipantCursorWidget: (targetUser) ->

          callback : => @modal.destroy()

    @showModal options
  quit: ->

    KD.utils.killRepeat @autoSaveInterval

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

      options = channelId: @socialChannel.getId()
      KD.singletons.socialapi.channel.leave options, (err) =>
        return KD.showError err  if err
        @setMachineUser [KD.whoami()], no, => @quit()


  removeMachineNode: ->
