 
 
   stopCollaborationSession: ->
+
+    return  unless @stateMachine
 
     switch @stateMachine.state
       when 'Active' then @stateMachine.transition 'Ending'


    @socialChannel
      .on 'AddedToChannel', @bound 'participantAdded'
      .on 'ChannelDeleted', @bound 'channelDeleted'


  participantAdded: (participant) ->

      {nickname} = account.profile
      @statusBar.createParticipantAvatar nickname, no
      @watchParticipant nickname


  bindRealtimeEvents: ->
