@Override
    public void stop(boolean waitFor) {
        logger.log(Level.FINE, "Closing application: {0}", getClass().getName());
        context.destroy(waitFor);
    }
Requests the context to close, shutting down the main loop
and making necessary cleanup operations.
After the application has stopped, it cannot be used anymore.

@param waitFor true&rarr;wait for the context to be fully destroyed,
false&rarr;don't wait
jme3-core/src/main/java/com/jme3/app/LegacyApplication.java