             return @_fatalErrorHandler(err) if err?
             cookies = j.getCookies(@cbhost)
             if not cookies or cookies.length is 0
-                return @_fatalErrorHandler(new Error("No cookies received."))
+                return @_fatalErrorHandler("No cookies received.")
             sessionIdCookie = lodash.find(cookies, (cookie)->
                 # session cookie's name as in workerConfig.cookieName
                 return cookie.key is 'cb.id'
             )
             if not sessionIdCookie
-                return @_fatalErrorHandler(new Error("No session cookie found."))
+                return @_fatalErrorHandler("No session cookie found.")
 
             @sessionId = sessionIdCookie.value
 

            result[k] = v
        return result

###
client = new Client({
    eventCount : 200
    createBrowser : true
    appAddress : 'http://localhost:3000/benchmark'
    cbhost  : 'http://localhost:3000'
    delay : 200
    id : 'client1'
    'clientEvent' : dumbEvent
    })

client1 = new Client({
    eventCount : 200
    cbhost  : 'http://localhost:3000'
    delay : 200
    id : 'client3'
    'clientEvent' : dumbEvent
    browserConfig : {"browserid":"139fz5elz6","appid":"/benchmark","appInstanceId":"0087z5elz4","url":"http://localhost:3000/benchmark/a/0087z5elz4/browsers/139fz5elz6/index"}
})

client.start()
client.on('stopped', ()->
    console.log "stopped"
)
setInterval(()->
    console.log JSON.stringify(client)
, 3000
)
###
options = {
    appInstanceCount : {
        full : 'appinstance-count'

        # this is a synchronized call, seems no actual connection established
        # at this point.
        # forceNew is mandatory or socket-io will reuse a connection!!!!
        @socket = socketio(@socketioUrl, { query: queryString, forceNew:true, timeout: 10000 })
        @stats.add('socketioClientCreateTime', @_timpeElapsed())
        
        @socket.on('error',(err)=>
