Adds better logging upon thread termination to Executor.pm