Allow Me To Explain
So, the thing is that Vrill had a good two rounds on you. First, he started a level above you. Then, he used two rounds to make partial moves, essentially counting as a full round move. You know he's got the Running non-weapon proficiency, or he'd have three rounds on you.
So, with his two rounds, he gets to the view chamber. Then, he casts Alarm on the door and gets to work on the controls. Then, you enter. He's a good round away in the room, you can't make it there in time before he Magic Missiles you. Maybe he drank a Potion of Speed or something too, you never know, I don't really have to justify everything the NPCs do behind the screen. I mean, he was a Potion Guild Guildmaster, so he probably has a lot of potions, and he knew he was going on a tough adventure so he probably stockpiled a lot of useful ones. It's why he's an interesting and dangerous villain.
But you know what?
As a favor to you, I'll let you get up there and attack Vrill. You basically have to throw the staff to get it in before he gets off the spell. So you hurl it at his face, giving him a bloody nose for 1 measely hp. He doesn't lose concentration though... maybe he drank a Potion of Great Concentration? You never know. As you go down, you hear him say: "Don't bother coming after me again, Meefer. I quit. The Potion Guild, adventuring, everything. You win, loser." Then it all goes black.