Moved thread creation down past the check for a lingering thread so we don't bypass the check.