Writing a quitApplication Function#
quitApplication
will be called once, before the application exits. In reality, as the application is about to exit, little needs to be done here except release non-automatic objects, such as file handles potentially held and database connections. Some still consider it best practice to tear down any leftover resources held here, even if they will normally automatically be freed by the operating system.