added an insurance AfterClass call to teardownContainerMode()