         else
           @emit(msg.eventName, msg.data)
 
+  disconnect_workers = ->
+    worker.disconnect() for worker in @workers
+
 module.exports = Roots

  ###

  watch: ->
    Watch = require('./api/watch')
    (new Watch(@)).exec()

  ###*
   * Removes a project's output folder.

   * @return {Function} - instance of the Roots class
  ###

  constructor: (@root, @opts={}) ->
    @root = path.resolve(@root)
    if not fs.existsSync(@root) then throw new Error("path does not exist")
    @extensions = new Extensions(@)
    @config = new Config(@, opts)

  ###*
   * Alternate constructor, creates a new roots project in a given folder and
