How to end a task after two incorrect responses ?