Terminate high availability agent thread safely
Merge pull request #1800 from jamie-cyber1/fix_haa2

OOIION-1756 Terminate high availability agent thread safely