stop learning in onPause