Last window closed = end of the app.