Looks good to me. Better than catching *all* exceptions in this case.