Updated promise library and pluginManager is now returning a promise