close client on search provider and replace with kue client