Never hire a royal advisor named Wormtongue
I mean, it’s right there in the name. He’s not exactly being stealthy about what he is.
And why they let him go after Gandalf’s exorcism, I will never understand. You don’t want to kill him? OK, that’s a choice. But lock him up in a dungeon at least!