junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/jupiter/JunitServerExtension.java
private void unregisterEmbeddedServer(ExtensionContext context, boolean staticMode) {
		boolean registeredAsStatic = findInStore(context, SERVER_RUNNER_STATIC_MODE);
		if (registeredAsStatic == staticMode) {
			try {
				EmbeddedServerRunner serverAdapter = findEmbeddedServerAdapterInStore(context);
				serverAdapter.afterAll();
			}
			finally {
				removeEmbeddedServerAdapterFromStore(context);
			}
		}
	}
private void unregisterEmbeddedServer(ExtensionContext context, boolean staticMode) {
		boolean registeredAsStatic = findInStore(context, SERVER_RUNNER_STATIC_MODE);
		if (registeredAsStatic == staticMode) {
			try {
				EmbeddedServerRunner serverAdapter = findEmbeddedServerAdapterInStore(context);
				serverAdapter.afterAll();
			}
			finally {
				removeEmbeddedServerAdapterFromStore(context);
			}
		}
	}
Stop and remove from the store the started embedded server.

@param context The test context.
@param staticMode {@code true} if the extension has been registered as a static extension, {@code false} otherwise.
@see #registerEmbeddedServer(ExtensionContext, boolean)