this should return (i.e. `return abortReplication(err);`) as we don't want to execute the rest of this function (I believe) it's causing error messages in node.