Added detection and prevention of socket buffer overflow upon computer returning from sleep/hibernation.