Shutdown a bot's actions by making it check for disconnecting state rather than aborting the thread.

Aborting the thread appears to be causing shutdown issues.