Retry connection 10 times if fail