Added quit() function to AppManager