tests: ignore RuntimeError on teardown