Place these last two lines within the try block