Do not use resolver.reject in Promise.reject