Replace remaining uses of 'break' with 'end'