         @kill name
       ,die.after
 
-    @child.on 'exit',=>
-      console.log "[PROCESSES][#{name}] did exit." if verbose
-      @emit "exit",@child.pid,name
-      delete @list[name]
-    @child.on 'close', () =>
-      console.log "[PROCESSES][#{name}] did close." if verbose
-      @emit "close",@child.pid,name
-      onExit @child.pid,name
-      if restart is yes
-        restartInterval = 1 unless restartInterval
-        setTimeout =>
-          @run options
-        ,restartInterval
-        console.log "[PROCESSES][#{name}] restarting the process in #{restartInterval} msecs." if verbose
-    @child.on 'message',(msg) =>
-      onMessage msg if "function" is typeof onMessage
-      if msg['process-monitor']
-        @emit "monitorData", msg
-      else if options.kontrol.enabled and options.kontrol.nodeProcess
-        @emit "childData", msg
+    # kontrold uses his own onExit and onClose
+    unless options.kontrol?.enabled
+      @child.on 'exit', ()=>
+        console.log "[PROCESSES][#{name}] did exit." if verbose
+        @emit "exit",@child.pid,name
+        delete @list[name]
+      @child.on 'close', () =>
+        console.log "[PROCESSES][#{name}] did close." if verbose
+        @emit "close",@child.pid,name
+        onExit @child.pid,name
+        if restart is yes
+          restartInterval = 1 unless restartInterval
+          setTimeout =>
+            @run options
+          ,restartInterval
+          console.log "[PROCESSES][#{name}] restarting the process in #{restartInterval} msecs." if verbose
+      @child.on 'message',(msg) =>
+        onMessage msg if "function" is typeof onMessage
+        if msg['process-monitor']
+          @emit "monitorData", msg
+        else if options.kontrol.enabled and options.kontrol.nodeProcess
+          @emit "childData", msg
 
     # console.log @list
     return childObj

    return @child

  kontroldProcess: (options) ->
    {name,restart,verbose} = options

    console.log "[PROCESSES][#{@name}] force mode enabled. Trying to stop and kill all other #{name} workers" if verbose and options.kontrol.forceStart


          workerProcess.worker.message.command = "ack"
          workerExchange.publish "input.worker", {worker: workerProcess.worker},
            appId: "#{workerProcess.worker.uuid}"


    @on 'childData',(msg) =>
      onMessage msg if "function" is typeof onMessage
