Add extra method for merging close path ends