remove os thread