Warning: Spoilers ahead!
Everything was going fine until I got to the end, where Erandur and I are supposed to kill Veren and Thorek. The problem is, they won't die. It's like they're marked essential. Using the console to either kill or disable them has no effect. I reloaded earlier saves twice (from before leaving Dawnstar to walk to Nightcaller Temple), and that didn't help either. I even tried making a little mod in which they were definitely non-essential, but that didn't work either. I also tried using the console to advance the quest, but the only stage it will let me advance to at that point is 200 (i.e. the end of the quest); if I do that, Erandur never destroys the Skull of Corruption and Veren and Thorek just become non-hostile.
Has anyone else had this problem? Anyone know how to fix it? I'm at a loss.