Curve editor joins

Select an option from the Curve Editor tab > Edit panel > Joins menu to either close open segments or join the end of one segment to the end of another.