Include reason when replication ends in an error state