use UUID instead of thread ID and set the polling time before the thread starts, since if thread starting takes too long nothing will happen