Close any sockets opened if we fail to initiate stratum but have opened the socket.