Automatically retry connection to the server when it fails.