Catch search exceptions and log