Updated CQ err write implementation