The only issue with it is garage spots aren't being written to file. I haven't done this for many years so memory is a little vague but I thought I recalled that they were written after exiting. Happy to be wrong. I may have had success yet. I have just managed to exit 3 times without crashing so I'll try again and post back.
Double-check that pitpath branch is joined main path correctly. Create pit spots first, then add garage locations.