In my book if the engine fails the engine driven vacuum pump fails and the vacuum driven AI stops. I would not rely on it in IMC with a failed engine no matter how fast the prop was spinning.
Solution is partial panel (you are in current practice aren't you?) or electrically driven AI as back up.