Thank you for playing my game, and the in-depth bug report!
The timing isn't exact, it relies on system clocks. I'll look into moving to a tick-based system at a later point.
There is an "end run" button in the menu, which can be accessed with either the "esc" or "del" keys.