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


    @showModal options
    @removeMachineNode()


  handleParticipantLeaveAction: ->

          callback : => @modal.destroy()

    @showModal options
    @rtm = null


  showSessionEndedModal: ->
