tests: log teardown errors