added exception handling and reconnection logic
Merge pull request #1360 from wfrench/fixdsa_rebase

added exception handling and reconnection logic.  For Master