Close all the listener sockets