Add logfile detection for failed replication tasks