Can't this be rewritten with one try/catch/finally statement?