What do you mean by "stop data replication midway"? Midway between what and what else? Why do you want to stop replication?
What aspect of the timing of replication do you want to control? Why?