Handle lookup errors