public void stop () throws Exception

This method is called when the application should stop, and provides a convenient place to prepare for application exit and destroy resources.

The implementation of this method provided by the Application class does nothing.

NOTE: This method is called on the JavaFX Application Thread.

Exceptions:
java.lang.Exception    if something goes wrong