Nope, the loop should not end if the exception is catched. What is the stack-trace that is printed? Are you sure it is from the exception you expect? (The code in the catch can also throw an exception)