Close the connection on IOException in the SwHeinzClient constructor