deletes the extra thread