I suggest to do it in ```onPause()``` because I saw a couple of times that ```onDestroy``` likes not to execute sometimes.