_downloadUrl should be a member variable of this class, and you won't need to get the application instance.

for quit, `Application::getInstance()->quit();`