Fail if thread creation fails.