Retry connections with sleep