Defects/return providers in search result

- search was modified to return providers within the result
- replace client.shutdown with client.close