Increase the sleep time, windows only has a timer resolution of 10ms so anything less is not guaranteed. Tested change locally.