Failure handler should return a value to avoid uncaught exception
New treatment for uncaught rejections with updated tests