CMC foliations of closed manifolds