Fixing scenario with dead socket looping forever: JGRP-1691

Proposed change for https://issues.jboss.org/browse/JGRP-1691