Try the *Weld* modifier at the end of your modifier stack (or as Robin says, at a more accurate place in your stack), play with the threshold value, it should merge the vertices.