Stop and join the workflow thread to avoid exceptions when daemonized threads are shutdown at process termination