Erasing kill_thread function, becoming useless with evaluation at the end of the cycle