code: public void shutdown() {
          workerGroup.shutdownGracefully().syncUninterruptibly();
          bossGroup.shutdownGracefully().syncUninterruptibly();
          getExecutionContext().getEventBus().post(new JNRPEStatusEvent(STATUS.STOPPED, this, "JNRPE Server stopped"));
      }
docs: Shuts down the server.