Qgis snap to vertex. The endpoints are near each other, but not quite aligned.