Move line 69 to just after the try on line 51.