 
     disconnect_from_session: (cb) =>
         @_remove_listeners()
-        if @session_uuid?
-            # no need to re-disconnect (and would cause serious error!)
+        if @session_uuid? # no need to re-disconnect if not connected (and would cause serious error!)
             salvus_client.call
                 timeout : 10
                 message : message.codemirror_disconnect(session_uuid : @session_uuid)

        )
        if opts.cb?
            salvus_client.execute_callbacks[uuid] = opts.cb

    introspect_line: (opts) =>
        opts = defaults opts,


    disconnect_from_session: (cb) =>
        @_remove_listeners()
        @_remove_execute_callbacks()
        if @session_uuid?
            # no need to re-disconnect (and would cause serious error!)
            salvus_client.call
