Properly canceling previous searches.