refined backbutton quit-app script