KAFKA-1279 Socket server should close all connections when it is shutdown.