Shouldn't this line of code be part of the catch block?