update STOP/CONTINUE to better handle when we stop the last node