Make replay restarts work correctly with -g args, and executions that take a long time to hit the start-debugging target.