If Internet connection lost, create a variable with all not downloaded queries. Add a warning containing information how to work with that variable (e. g. setdiff(query, failed_query) and that user can use this variable as the next query)
Always display the message containing information about the number of the successful queries