Stop test thread on self test close.