Added sleep between tcp connection retry attempts