✅ Application only terminates on exception when debugging in Rider but not when debugging in VS2022 - C#