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

    if @amIHost
      @listChatParticipants (accounts) =>
        usernames = getUsernames accounts
        @setMachineUser usernames, status
    else
      @setMachineUser [nick()], status


  setMachineUser: (usernames, share = yes, callback = kd.noop) ->

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

      return throwError err  if err

      kd.utils.killRepeat @pingInterval

