The exit on first detection option was simply breaking the day loop rather than going through "proper channels", so unit stats never got written to the database. Fixed #263