Workaronud for race condition shutting down test server