Some improvements in AbstractPromise.