Fixed SSH agent failure detection