code: public void stop() {
          if (this.active) {
              this.mongodProcess.stop();
              this.active = false;
  
              LOG.info("Successfully stopped EmbeddedMongoDB @ {}:{}", this.host, this.port);
          }
      }
docs: Stops the EmbeddedMongoDB instance