Add proper exception checking after each thread call