Document live replication stopping on error

Documents #2768. Adding explanation and example code showing how to handle the error.