Sometimes we need to catch the closing of our AIR application to make some things like storing the window's position and size. We can do that in our code.