fixed lost connection retry logic
Merge pull request #1727 from wfrench/dsa_lost_connection2

OOIION-1734 Fix Dataset Agent Lost Connection Logic