catch search exceptions.