The Close Figure option in the right-click menu only works when you are actively placing a line. To close a line that you've already finished, select the line and choose Close Selected Figures.