add DestroyApp method