Fix shutdown across socket edges.