added Application::close()