commented shutdown sequence

shutdown has to close tcp and udp sockets in proper order to get deallocation of resources correct.