Defects/return providers in search result

- search was modified to return providers within the result
- replace client.shutdown with client.close
there should be a test proving the bug (see it red before fixing it)