code: private void hide() {
          try {
              motd.markAsRead();
              stage.hide();
          } catch (ClassNotFoundException | IOException e) {
              FOKLogger.log(MOTDDialog.class.getName(), Level.SEVERE, FOKLogger.DEFAULT_ERROR_TEXT, e);
          }
      }
docs: Hides this {@code MOTDDialog} and marks its {@link MOTD} as read using
  {@link MOTD#markAsRead()}