Retry connection to server