So, my hypothesis is that a write is happening on another thread (possibly a script thread or a relay thread?) while the timein is running, so there's a race condition. I know that at times, I've had scripts wake from sleep and be just fine, but that's the thing about race conditions.
If...