Adding logout to onDestroy