Hanging thread breaks FxDK

Running something like this

    while true do end

Obviously this hangs the game. The program doesn’t detect a crash and never restarts the game. If you close the program the FiveM process is still open in the background and you have to manually close it with task manager. You are also unable to reopen FxDK until stopping the FiveM process