Added onStop logging and moved super.onStop to the top of the method