baseparse: Also flush the close_segment