Support reconnecting to the wayland server after a fatal error.
This patch was written as part of investigating a mitigation for T100855, however as it's not possible to keep the EGL context active, it's not all that practical to keep Blender's state valid once all shaders and loaded textures have been lost.
It's also not possible to use a different connection to the wayland server for the EGL context (which might allow the EGL context to remain active even if the windows closed), as API use such as creating EGL windows fails when the same connection for the ContextEGL and the EGL-windows are different.
Submitted diff for reference.