Limit scope of try clause