call super.onPause and super.onStop after other commands run