if there is a socket.timeout while populating repo table, script will sleep for 10 mins
and restart
added in adrians alterations