ensure the eventDispatcher is torn down when the container is.