Retry queries that timeout