Returning a value from the callback provided to finally() is not sufficient to force promise resolution.