     @chat.settingsPane.endSession.disable()
 
     if @amIHost
-      @endCollaborationForHost
-        success: =>
-          @modal?.destroy()
-          @handleCollaborationEndedForHost()
-
+      @endCollaborationForHost =>
+        @modal?.destroy()
+        @handleCollaborationEndedForHost()
     else
-      @endCollaborationForParticipant
-        success: =>
-          @modal?.destroy()
-          @handleCollaborationEndedForParticipant()
-
-
-  endCollaborationForHost: (callbacks) ->
+      @endCollaborationForParticipant =>
+        @modal?.destroy()
+        @handleCollaborationEndedForParticipant()
+
+
+  endCollaborationForHost: (callback) ->
 
     @broadcastMessage { type: 'SessionEnded' }
 

      envHelpers.detachSocialChannel @workspaceData, (err) =>
        throwError err  if err

    callbacks.success()


  handleCollaborationEndedForHost: ->

    @cleanupCollaboration()


  endCollaborationForParticipant: (callback) ->

    @broadcastMessage { type: 'ParticipantWantsToLeave' }

