Add retry support for connection loss exception.
Merge pull request #7 from alexguan/feature-support-retry

Add retry support for connection loss exception.