Neither of your sequences failed due to auto focus.
The sequence in the first log failed 2 times (and recovered successfully 2 times) due to PHD2 star lost messages. The sequence in the second log failed 1 time (and did not recover successfully (also due to a PHD2 star lost message). Both sequences show that to be the only reason for sequence failure.
As to why the dark frames did not run on sequence failure:
- The first sequence: There was no cause to... the sequence did not fail and dark frames started normally.
- The second sequence: I am not sure. Either:
- Capture calibration frames on sequence failure was accidentally turned off
- The dark events were de-activated
- There is a bug that caused them not to run (because of the very specific way your sequence failed). I cannot see anything obvious, so I have added a bit more trace code to further narrow down what happens when this option is selected.