SOCU: Close all the opened sockets when cleaning up SOCU