2) When domR is executed in parallel thread, make sure that the thread "exit 0" after the restart is done