Exit with error for larger range of error conditions in sub threads.