fixed issue with periodic sync acitivity

Periodic sync activity was not properly restarted.
Fixed another issue with brittle connections, some errors from the 
dns resolver are not properly transported to the httpClient => doing
resolving ip manually now and catching errors, hopefully that will work out better.