[FAB-13469] consistently use 127.0.0.1
[FAB-13469] consistently use 127.0.0.1

localhost can resolve to ::1 in some network environments so avoid that
by using 127.0.0.1. Also, when getting a connection fails, we shouldn't
try to close it.

Change-Id: I617357abb1d5d29514634b3e3ad59d93feb8429a
Signed-off-by: Matthew Sykes <89c6e4c9c1046731a9c37abefc223a83de36a5d9@us.ibm.com>

manish-sethi/fabric,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,jimthematrix/fabric,jimthematrix/fabric,stemlending/fabric,muralisrini/fabric,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,hyperledger/fabric,manish-sethi/fabric,hyperledger/fabric,binhn/fabric,stemlending/fabric,muralisrini/fabric,muralisrini/fabric,stemlending/fabric,stemlending/fabric,manish-sethi/fabric-sidedb,binhn/fabric,binhn/fabric,manish-sethi/fabric-sidedb