Take into account that the onTermination() method provided by the ForkJoinWorkerThread class is called when a thread finishes normally or throws an exception. The method receives a Throwable object as a parameter. If the parameter takes the null value, the worker thread finishes normally; however, if the parameter takes a value, the thread throws an exception. You have to include the necessary code to process this situation.