 
     @rtm.createFile @getRealTimeFileName()
 
-    @setMachineSharingStatus on
+    @setMachineSharingStatus on, (err) ->
+
+      throwError err  if err
 
 
   # should clean realtime manager.


    @setMachineUser [targetUser], no, (err) =>

      kd.singletons.socialapi.channel.kickParticipants options, (err, result) =>

        return showError err  if err

    { Collaboration } = remote.api
    Collaboration.stop @rtmFileId, @workspaceData, (err) =>

      return throwError err  if err

      kd.utils.killRepeat @pingInterval

