all teardown callbacks are called despite errors (#5928)