add option to retry connection
Merge pull request #51 from evanwhalen/retry_option

add option to retry connection