TEZ-1770. Handle ConnectExceptions correctly when establishing
connections to an NM which may be down. (sseth)