Undo-ing an HD Admin Command

So basically, I’m using HD admin within a game I’m making. In the game, the person who gets to be “admin” is going to change multiple times. With HD Admin’s API, it’s easy to rank and unrank the person, but how do I undo their command. If a person does ;fly while they’re admin but then they’re unranked, they still will have the GUI open for the ;fly command, enabling them to fly still. I don’t want that to happen. I don’t want them to have any admin power after they’ve been unadmined. Any way to do this? I’ve tried messing with the main module itself but it hasn’t worked

make your own admin system
shouldnt be too hard