Can I restart the UE editor after it crashes

Yes, that’s correct. I would like the Unreal Engine editor to automatically restart itself if it crashes while running on the server. My goal is to ensure that the editor can recover and continue executing the preset tasks without manual intervention. If there is a way to implement this in C++, could you guide me on where to write the code? Any advice or recommendations would be greatly appreciated.