Now if setup fails, teardown is called, and the thread is exited rightaway.