Terminate high availability agent thread safely
Merge pull request #1801 from jamie-cyber1/fix_haa

OOIION-1756 Terminate high availability agent thread safely