     launchArguments: args
     workingDirectory: spawnOpts.cwd
 
+  registerUncaughtHandler(child)
+
   child.readLog = (callback) ->
     fs.readFile logPath, (error, data) ->
       return callback(error) if error?

{spawn} = require 'child_process'
fs = require 'fs'

procNotFoundError = (error, cmd) ->
  error.message = "Unable to find #{cmd}"

    if err.errno is 'ENOENT'
      child.error = procNotFoundError(err, cmd).stack
    child.rawProcess.kill()

  child

