If your fail goal reaches the goal you need to win, you fail.
My only gripe is with the ghost boss fight, because their fail points are all over the place, and even right on top of the success points, so you have to be lucky in that they dont ruin your chance to success.