At times, you may want to close an open path, such as a U-shaped path.
Select the path.
On the Object menu, click Close Path (or press ALT+J).