Sometimes it makes sense to quit.