etcd: make retry configurable

@unihorn Support retry flag
The default retry interval is 4s. Changed it to millisecond level in testing (original 100ms).
I don't like to use fatal here, because it exits the program directly, and is not friendly when using as embedded one.
Could we return stopMode instead?