       @child = null
       return
     
-    setTimeout => 
-      cmdParser = new XmlParser()
-      cmdParser.on 'command', (command) => @handleCmd(command)
-        
+    setTimeout =>
       @client = new net.Socket()
       @client.connect port, host, ->
         console.log 'Connected'

      # case 'eval'                then
      # case 'processingException' then
      # case 'frames'              then

  # Tear down any state and detach
  destroy: ->

        return
      @client.on 'data', (data) =>
        console.log 'Received: ' + data
        @cmdParser.write(data.toString())
        # client.destroy()
        # kill client after server's response
        return
