Avoid promise.fail() AMAP: it unecessary consume memory.