I was wondering if you mean to be catching errors thrown by Proxy::DHCP::Record or not, or just parse errors?  If the latter, just change it to a begin/rescue block around the REXML::Document bit.