Click or click and drag
to connect the start and end nodes (the cursor changes to include
a small square symbol).

- or -
Select
the line with the Pointer Tool and
then on the context
toolbar, click Close Curve.