I think I went through about 8 interviews only to be told that they were going with an internal candidate. If you hear that they have an internal candidate at any point in your interview process, just walk away. They have no issues in wasting your time.