public void shutdownGracefully() { data.setAutoSaveInterval(0); data.shutdownAsynchronousSavingConsumer(); this.save(); data.save(); }