Gap between edge of lattice and mesh when using simple deform
In the Lattice properties, change the interpolation from B-Spline to Linear. There is by default a smooth interpolation between the control points when using a Lattice.

Side note, for this kind of transformation, you only need a 1-dimensional lattice.
Result, with a Weld and a Solidify modifier :