     mu = @
 
     async.waterfall [
+      (callback) ->
+        mu.stopCustom callback
       (callback) ->
         mu.stopNetwork callback
       (callback) ->

        mu.startDatabase callback
      (callback) ->
        mu.startNetwork callback
    ], (err) ->
      if err
        callback err


    exp

  setupMiddleware: (exp) ->
    undefined

  setupParams: (exp) ->
    undefined

  setupRoutes: (exp) ->
    undefined

  startCustom: (callback) ->
    callback null

  stopCustom: (callback) ->
    callback null

  envInt: (env, key, def) ->
    if env[key] then parseInt(env[key], 10) else def
