Timing is the likely issue, since the wrapper does not change anything else really.
Sometimes I face this also with iterations on slewing to target. Telescope has not come to rest /still moving but capture already in place.
It would help to introduce a dead time there to not overwhelm certain hardware.
Same here, sometimes I also get star trailing on the first exposure after the solve. It seems capture starts before mount has stabilized.
Some timeout setting would help on this.