This reverts some parts of commit 8430a8f086 which was trying to rethrow some exceptions while we weren’t in the context of a `catch` block, causing some weird “terminate called without an active exception” errors. Fix #5368
8430a8f086
enum struct
std::visit
settings.keepFailed