catch exceptions from invalid seach terms