Ensure closed in tearDown