quit applications via dialog box