stopping thread check