The hang on target quit is related to windows 10 and the thrustmaster DeviceManagementApp. The purpose of this program is to restore the individual components from the trustmaster combine after the script stops.
Since windows 10 now does this automatically, the windows and the app race to restore the joystick. If windows wins you get hang and the thrustmaster app won’t quit. Since the app can’t be killed windows won’t shutdown and you have to hard restart. The solution is to delete DeviceManagementApp in the target folder.
This is solely a Win 10 fix, if you’re running 7 and delete this app, you may break the functionality of target.
The app is located in Thrustmaster -> Target -> x64.
Credit for the discovery and solution comes from the link below.