retry connection for 10 times