Store the current time when writing stop events, not the last predicted
time. Fixes #4.