public synchronized TestContainer stop() {
LOGGER.debug("Shutting down the test container (Pax Runner)");
try {
if (started) {
target.stop();
RemoteBundleContextClient remoteBundleContextClient = target.getClientRBC();
if (remoteBundleContextClient != null) {
remoteBundleContextClient.stop();
}
if (runner != null) {
runner.shutdown();
}