Close listening sockets regardless of the return value of shutdown()