Added code to cleanly shutdown flare's async watcher threads.