I added some code that (hopefully - i can not reproduce it myself, but that is not unusual for a race-condition) fixes the issue.
I added some code that (hopefully - i can not reproduce it myself, but that is not unusual for a race-condition) fixes the issue.