Simplify exception safety for deleting ifaddrs.