Use BeforeClass/AfterClass and shutdown hook