quit applications via dialog