and `stopListening` is called.