Be more precise about when we end replay.

I've tested this on a few replays with no ill effects, but it's still
a bit experimental.