The application is running in a Docker container with limited RAM. There's some kind of memory leak in the application (the problem is being investigated), which accumulates over a long time. When an OOM (Out Of Memory) error occurs, the application doesn't crash when an error happens within an actor.
Because the application doesn't crash, the Docker container isn't restarted by Docker, and it continues to run in a semi-dead state, performing no useful work.
How can I make the application crash? The only option I've found is Environment.FailFast. Is there a more correct solution?