Problem with unhandled exception

Hello, i have 2 servers of hangfire (different machines), in a machine a job reads a pdf. Reading this file throws an exception of the type: StackOverflowException. The machine that processed the job closed (the process is stopped). Then the other machine takes the job and also closed.

The questions are:
How does Hangfire know that a task is not being procesed by any machine?
Is there any configuration to prevent jobs from being retry?

I’m using hangfire version 1.6.24