Close client on failed connect so node can exit.