Destruction

When the last page function returns, application::close() is called automatically.