in reply to stack trace from thread exit

The answer I would like is to configure perl or the threads object to exit the process on any failure

From perldoc threads v1.75:

$thr->error() Threads are executed in an "eval" context. This method will return "undef" if the thread terminates normally. Otherwise, it returns the value of $@ associated with the thread's execution status in its "eval" context.

and you might want to look at

threads->create({'exit' => 'thread_only'}, ...) This overrides the default behavior of "exit()" inside the newly crea +ted thread only. ...... with this setting, calling "exit()" causes only the thread to t +erminate

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh