 
     @showModal options
     @removeMachineNode()
+    @rtm = null
 
 
   handleParticipantLeaveAction: ->

        @chat.emit 'CollaborationEnded'
        @chat = null
        @modal.destroy()
        KD.singletons.mainView.activitySidebar.emit 'ReloadMessagesRequested'

      @rtm.deleteFile @getRealTimeFileName()

      @broadcastMessages.push origin: KD.nick(), type: 'ParticipantWantsToLeave'
      @removeMachineNode()
      @modal.destroy()
      @rtm = null
      KD.singletons.mainView.activitySidebar.emit 'ReloadMessagesRequested'
      KD.singletons.router.handleRoute '/IDE'

