I deactivated Metabox and my site crashed.
Looking at the logs, a fatal error was encountered because of a missing dependency.
The dependant file is in the the Metabox Elementor Integrator.
The dependency is a function provided by the metabox plugin.
This is no particular problem for me: the site is local, so I can simply navigate to the plugins and remove metabox, or use probably wpcli to deactivate it.
But ideally a plugin with a missing dependency shouldn't crash the site.
I suggest wrapping the dependency call with a check to see if metabox is active. When the dependency check fails, maybe deactivate the dependant plugin, or just return before running anything.