A perfectly rational decision-maker would consider only the future costs and benefits in deciding whether to continue with a course of action. In other words, if continuing on has a positive expected value, a rational actor would persevere. If it has a negative expected value, they would quit.