Which action closes a path when you are actively drawing with the Pen tool?
switching to a different tool
pressing Return (Mac) or Enter (Windows)
choosing Object > Path > Join
clicking or dragging the first point in the path