Pencil lines are central vector lines. Sometimes, two pencil lines may look connected because their edges overlap, but if their centerline is not connected, they will be considered an open shape. To make sure the end of your stroke connects to the beginning of your stroke, hold the Alt key when you start or finish drawing a pencil line.