Close accepted sockets when closing listener.