Update ThreadHandlers.cpp