Merge the state of each path at exit point