Cancel search request when leaving search