Python broken after failed install

If you accidentially do a wrong installation of a package in Python it is quite fatal.
I know you can go to Script Editor-Advanced-Reset CPython runtime, but if this happens at someone else machine I’m in trouble!
I would suggest to automatically prompt a reset of CPython runtime if this happens.

Note: the component on the canvas is a simply python3 component with the code a=x==y inside

I can add a message to restart. Rhino will delete and recreated ‘corrupt’ environments when starting.

Ideally it would be on Rhino level, so not just in grasshopper. But if you open grasshopper and python is corrupt you get a prompt to reset.
It would be awesome! Thanks