added break statements to exception catch