Moved construct thread call inside thread_exists conditional