fix exit status when one or more lookups failed