promises can not be resolved or rejected more than once