Easy to emulate a complete hook function with Promise.prototype.finally()
Promise.prototype.finally()