 
             handleError = (error) ->
               console.warn "[FilesCollection] [Upload] [HTTP] Exception:", error
-              response.writeHead 500
-              response.end JSON.stringify {error}
+              if !response.headersSent
+                response.writeHead 500
+              if !response.finished
+                response.end JSON.stringify {error}
               return
 
             body = ''

  _404: if Meteor.isServer then (http) ->
    console.warn "[FilesCollection] [download(#{http.request.originalUrl})] [_404] File not found" if @debug
    text = 'File Not Found :('
    http.response.writeHead 404,
      'Content-Length': text.length
      'Content-Type':   'text/plain'
    http.response.end text
    return
  else undefined


  ###
  @summary Require NPM packages
  ###
  fs       = Npm.require 'fs-extra'
  events   = Npm.require 'events'
  request  = Npm.require 'request'
  Throttle = Npm.require 'throttle'
  fileType = Npm.require 'file-type'
  nodePath = Npm.require 'path'

  ###
  @var {Object} bound - Meteor.bindEnvironment (Fiber wrapper)
