Another way to look at it is that you're missing all but the last .txt. Maybe it's changed now. I.e. A new .txt is started whenever there is a disconnect followed by a reconnect, but the previous .txt is discarded. As I said this wasn't the behavior that I saw, but it's been a while.
I think there is a simple test. I'd do this if I had time. If I'm not mistaken the .txt starts being recorded at motorStart. The test would be to start the motors without the props. Then place a metal garbage can over the
P4P to simulate a disconnect. Do this a couple of times and see how many .txt files get created.