* Handles an error and convert it to a string so it can be sent back to the main worker.
*
* @param e - The error raised by the worker.
* Handles an error and convert it to a string so it can be sent back to the main worker.
*
* @param e - The error raised by the worker.