onDestroy condition updated