Changed 6029 to use _RESTART_DEVICE instead of deleteAllThreads().