i'd just pull this declaration and the usages into the try/catch.  it'll be easier to follow and I don't think it messes with your control flow any