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