Handle socket errors for NAT-PMP client.