 				action: 'generatePrepare generateCheck generateClean generateParse generateRender generatePostpare'
 				args: [opts]
 				next: (err) ->
-					return next(err)
+					return finish(err)
 			)
 
 		# Chain

		# Chain
		@

	# Server Middelware: Powering
	serverMiddlewarePowering: (req,res,next) ->
		tools = res.get('X-Powered-By').split(/[,\s]+/g)
		tools.push 'DocPad'
		tools = tools.join(',')
		res.set('X-Powered-By',tools)
		next()

	# Server Middelware: Router
	serverMiddlewareRouter: (req,res,next) =>
		# Prepare
		docpad = @

		serverHttp = null

		# Config
		opts.middlewareBodyParser ?= config.middlewareBodyParser ? config.middlewareStandard
		opts.middlewareMethodOverride ?= config.middlewareMethodOverride ? config.middlewareStandard
		opts.middlewareExpressRouter ?= config.middlewareExpressRouter ? config.middlewareStandard
		opts.middleware404 ?= config.middleware404
		opts.middleware500 ?= config.middleware500

