stopListening method