Retry query when connection is lost.
Make sure to fetch the right items.