remove RefWriter instances