One would think that when an interface gui appears the game would pause so that these types of thing don't happen.
You would think so, but Larian tought me to not take the obvious solutions that's been around since I remember for granted.
One could point to multiplayer and Larian expectation for companions to be controlled by other players, but surely a solution could and should be found.