Hell, I've interviewed people who were perfect for the job and whom I wanted to hire, only to be told that the financials of the business changed and we can't hire for that position any more.

I'd hope HR told the candidate that the position has been retracted, but maybe the HR system just sent an "unfortunately" email, I have no idea.