added: stop searching if get N empty queries in a row. also add a check ...

add a stop policy. stop searching if get N empty queries in a row. 


add a check for MaxConnectMins < MinConnectMins