Always close all sockets in terminate_connection().