Similar to the polyline tool, for hatches the contour entities must match exactly on their endpoints too.
Iirc, the command window shows the coordinates, where the contour has a gap.
Use the command line or appropriate snap modes or possibly trim tools to create a perfect closed form.
Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution