       throw new Error("No event '#{eventName}' in state '#{@state.name}'")
 
   socketError: (error) =>
-    message = "connection to #{@config.server}:#{@config.options.port} failed"
+    message = "connection to #{@config.server}:#{@config.options.port} - failed #{error}"
 
     @debug.log(message)
-    @emit('connect', message)
     @dispatchEvent('socketError', error)
 
   socketConnect: =>

      enter: ->
        @emptyMessageBuffer()
      events:
        connectTimeout: ->
          @transitionTo(@STATE.FINAL)
        packet: (packet) ->

          @processLogin7Response()
    LOGGED_IN:
      name: 'LoggedIn'
      events:
        socketError: (error) ->
          @transitionTo(@STATE.FINAL)
    SENT_CLIENT_REQUEST:
      name: 'SentClientRequest'
      events:
        socketError: (error) ->
          @transitionTo(@STATE.FINAL)
        packet: (packet) ->
          @sendPacketToTokenStreamParser(packet)
        message: ->
