docs: function(config) {
      var app = null;
      try {
        app = module.exports.createApp(config);
      } catch (err) {
        // wrap also synchronous error to promise to have consistent API for catching all errors
        return Promise.reject(err);
      }
      return module.exports.startApp(app);
    }