return null instead of throwing exception from socket inner loop. backport of CASSANDRA-675 from trunk by junrao.