kill process onDestroy.