sleep so the timestamps get to change
check that the thread is valid before trying to stop it