   updater.run()
   .then (msg) ->
     logger.info msg
-    process.exit(0)
+    Q()
+  .then -> process.exit(0)
   .fail (error) ->
     logger.error error, 'Oops, something went wrong!'
     process.exit(1)

{ProjectCredentialsConfig} = require 'sphere-node-utils'
MarketPlaceStockUpdater = require '../lib/marketplace-stock-updater'
package_json = require '../package.json'


process.on 'SIGUSR2', -> logger.reopenFileStreams()

ProjectCredentialsConfig.create()
.then (credentials) ->
  options =
