wmdatamining fix
Don't terminate the thread when function fails
print out the error log